Skip to content
This repository has been archived by the owner on Apr 21, 2022. It is now read-only.

Truncating log messages #5

Closed
grassick opened this issue Aug 30, 2016 · 1 comment
Closed

Truncating log messages #5

grassick opened this issue Aug 30, 2016 · 1 comment

Comments

@grassick
Copy link

We have very long messages at times that get truncated in the log viewer:

image

Is there a way to turn that off?

@respectus
Copy link
Contributor

respectus commented Aug 30, 2016

Hi @grassick , thanks for your feedback! Currently the npm module doesn't have the ability to stop the truncation. However, if you pull the code in this repo, and run it locally you can have greater control. Specifically if you look at lib/configs.js there is a constant MAX_LINE_LENGTH, currently this is set to 32000, but you can change this to fit your use case. If you'd like to remove the truncation completely you can remove the appropriate if statement in the _bufferLog function. I've updated the module to add an optional parameter for max_length. So if you set options.max_length = false, then no lines will be truncated. Please let me know if you have any other concerns!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants