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

Switch from built-in logger to logrus #3

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

dvallant
Copy link

Hey @dsouzajude,

In this PR logging is changed from built-in golang logging to logrus. With the new environment variable LOG_LEVEL the preferred log level can be set on start up.

Further, this PR adds some minor enhancements:

  • Update build to golang 1.20
  • Compile regex for empty messages outside loop

If you prefer I could create separate PRs for them :-)

Best wishes,
Dorian

To increase the performance the regex pattern to find empty log
messages was put outside the loop.
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.

2 participants