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

Avoid nil check for entry field in logger #314

Merged
merged 1 commit into from
Sep 23, 2019
Merged

Avoid nil check for entry field in logger #314

merged 1 commit into from
Sep 23, 2019

Conversation

SupriyaKasten
Copy link
Contributor

Change Overview

Avoid nil check for entry field in logger, address review suggestion from @julio-lopez in PR #293

Pull request type

Please check the type of change your PR introduces:

  • Work in Progress
  • Refactoring (no functional changes, no api changes)
  • Trivial/Minor
  • Bugfix
  • Feature
  • Documentation

@mergify mergify bot merged commit df1a364 into master Sep 23, 2019
@SupriyaKasten SupriyaKasten deleted the log-print branch September 23, 2019 18:49

return &logger{
level: InfoLevel,
entry: logrus.NewEntry(logrus.New()),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not sending the entries to a common logger.

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

3 participants