Skip to content
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

Use standardlogger when initialising new logger entries #3592

Merged
merged 5 commits into from
May 28, 2024

Conversation

JamesMurkin
Copy link
Contributor

If you use logrus.New() you lose all the formatting we've applied to the logger and just get the default

We should use logrus.StandardLogger() - which we already do in most place - to maintain our formatting changes on new logger entries

This is particularly noticeable on context based loggers (which the scheduler uses), as they don't have millisecond precision like they should

If you use logrus.New() you lose all the formatting we've applied to the logger and just get the default

We should use logrus.StandardLogger() - which we already do in most place - to maintain our formatting changes on new logger entries

This is particularly noticeable on context based loggers (which the scheduler uses), as they don't have millisecond precision like they should

Signed-off-by: JamesMurkin <jamesmurkin@hotmail.com>
@JamesMurkin JamesMurkin marked this pull request as ready for review May 15, 2024 16:22
@JamesMurkin JamesMurkin merged commit 60ea9c9 into master May 28, 2024
24 of 28 checks passed
@JamesMurkin JamesMurkin deleted the fix_context_logger_initialisation branch May 28, 2024 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants