-
-
Notifications
You must be signed in to change notification settings - Fork 587
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Moleculer prints colored log messages when colored log messages are disabled #793
Comments
Seems like I missed a part of our code where the logger is replaced by our own implementation. The color is already hardcoded into the log message. The |
I think this should still be an open issue. Something in moleculer is causing those control characters to come through, but I'm not sure where they're from. {"level":"info","message":" \u001b[35m GET\u001b[39m \u001b[36m/api/openapi/:spec/:format\u001b[39m\u001b[90m => \u001b[39mopenapi.schema","mod":"api","nodeID":"computer-27240","ns":"","svc":"api"} That results in a lot of unnecessary eye-candy, and becomes confusing when the service is busy and logs lines become interleaved: |
It can be related to #941 |
I only had a single logger. After further digging around, I jumped over to
|
Prerequisites
Please answer the following questions for yourself before submitting an issue.
Current Behavior
Certain log messages are colored, even though colored log messages have been disabled.
Expected Behavior
When colored log messages are disabled, log messages are not colored.
Steps to Reproduce
Please provide detailed steps for reproducing the issue.
Context
Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.
My logger configuration:
The text was updated successfully, but these errors were encountered: