parse-server icon indicating copy to clipboard operation
parse-server copied to clipboard

Allow `LOG_STRING_TRUNCATE_LENGTH` to be configurable

Open andrewalc opened this issue 2 years ago • 1 comments

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

andrewalc avatar Sep 19 '23 22:09 andrewalc

Thanks for opening this issue!

  • 🎉 We are excited about your ideas for improvement!