parse-community / parse-community/parse-server

Allow `LOG_STRING_TRUNCATE_LENGTH` to be configurable

Open
#8,755 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type:feature
Dominant language
JavaScript
Stars
21.4k
Forks
4.8k
Avg merge
7h 45m
Merged PRs (30d)
11

Description

New Feature / Enhancement Checklist
Current Limitation

Currently there is no way to reconfigure the LOG_STRING_TRUNCATE_LENGTH threshold for when a parse log is truncated. It's currently set to truncate when a log exceeds 1000 characters. This affects parse trigger logs and parse cloud function logs that use truncateLogMessage

Feature / Enhancement Description

There should be a server option to set LOG_STRING_TRUNCATE_LENGTH to a length other than 1000 characters. Perhaps even an option to disable truncation altogether. The default threshold should remain 1000 characters if not set in server options.

Example Use Case
  • Security measures where the capture of full un-truncated logs is critical
  • Easier troubleshooting / debugging with parse logs that exceed 1000 characters
Alternatives / Workarounds

There is currently no way to disable or change LOG_STRING_TRUNCATE_LENGTH for parse server logs

3rd Party References

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in src/Controllers/LoggerController.js, where LOG_STRING_TRUNCATE_LENGTH and truncateLogMessage are defined. Trace how parse trigger and Cloud Function logs reach this helper and how server options are exposed. Done means the truncation length can be configured, optionally disabled if supported by the chosen design, while the default remains 1000 characters.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.