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

fix logs not working properly #264

Merged
merged 1 commit into from
Oct 4, 2021
Merged

fix logs not working properly #264

merged 1 commit into from
Oct 4, 2021

Conversation

tsmethurst
Copy link
Contributor

When you create a *logrus.Entry from a *logrus.Logger and then check entry.Level it always shows as 0 (ie., no logging) even when the logger you created it from had something like 5 (debug logging).

This meant that logs where the level is checked first based on the created Entry weren't working properly in the federating db.

This PR fixes that by checking the level from the Logger instead of the Entry created from it.

@tsmethurst tsmethurst merged commit ff77bf1 into main Oct 4, 2021
@tsmethurst tsmethurst deleted the federating_db_log branch October 4, 2021 14:00
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.

1 participant