Skip to content

Fix loggerExporter's test log output being binary

Emily Chui requested to merge bugfix/logrus-logging-binary-format into master

In trace2hooks, the log_exporter_test is missing configuration in the logger's formatter to display string output of a trace instead of binary format output. This will fix the output logs of tests that have this problem.

Example of binary output exhibited in tests. Note: this behaviour is only in testing output and not the actual gitaly logs.

Screenshot 2024-01-29 at 8.40.29 pm.png

Fixed by configuring the correct formatter for logrus:

image.png

Merge request reports