noobaa / noobaa-core

High-performance S3 application gateway to any backend - file / s3-compatible / multi-clouds / caching / replication ...
https://www.noobaa.io
Apache License 2.0
273 stars 80 forks source link

Log prints should be in single line with limited length #7506

Open guymguym opened 1 year ago

guymguym commented 1 year ago

Environment info

Actual behavior

  1. Today our logging prints a lot of new lines as it formats js objects to pretty print it.
  2. This makes it very hard to grep from the logs or parse them.
  3. In addition some prints are accidentally huge and print enormous objects.

Expected behavior

  1. Log prints should be single line and limited in length.

Steps to reproduce

  1. Trivial.

More information - Screenshots / Logs / Other output

FYI @nimrod-becker @dannyzaken - can we fix this and consider also backporting to 5.12/5.13 too?

github-actions[bot] commented 6 months ago

This issue had no activity for too long - it will now be labeled stale. Update it to prevent it from getting closed.

romayalon commented 6 months ago

reference - https://getpino.io/#/

github-actions[bot] commented 3 months ago

This issue had no activity for too long - it will now be labeled stale. Update it to prevent it from getting closed.