Skip to content

allow to use specific logrus level in the adaptor#962

Merged
ChrisHines merged 7 commits into
go-kit:masterfrom
taraspos:logrus-level
Mar 10, 2020
Merged

allow to use specific logrus level in the adaptor#962
ChrisHines merged 7 commits into
go-kit:masterfrom
taraspos:logrus-level

Conversation

@taraspos
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown
Member

@ChrisHines ChrisHines left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution. Happy to add this feature, but would like it implemented a bit differently, see inline comment below.

Comment thread log/logrus/logrus_logger.go Outdated
Copy link
Copy Markdown
Member

@ChrisHines ChrisHines left a comment

Choose a reason for hiding this comment

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

Thanks. It's getting closer. There are a couple more tweaks to make, though.

Comment thread log/logrus/logrus_logger.go Outdated
Copy link
Copy Markdown
Member

@ChrisHines ChrisHines left a comment

Choose a reason for hiding this comment

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

Nice updates.

Next, it would be nice to add something to the unit tests to verify the new feature works as intended.

Also, see my suggestion on the docs for WithLevel below.

Comment thread log/logrus/logrus_logger.go Outdated
@taraspos taraspos requested a review from ChrisHines February 24, 2020 16:29
Copy link
Copy Markdown
Member

@ChrisHines ChrisHines left a comment

Choose a reason for hiding this comment

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

Sorry for the delay reviewing this. It is looking pretty good, I just have one comment on the new test.

Comment thread log/logrus/logrus_logger_test.go Outdated
@taraspos taraspos requested a review from ChrisHines February 27, 2020 08:33
Comment thread log/logrus/logrus_logger.go Outdated
Comment thread log/logrus/logrus_logger.go Outdated
Comment thread log/logrus/logrus_logger.go Outdated
Comment thread log/logrus/logrus_logger.go Outdated
@taraspos taraspos requested a review from ChrisHines March 9, 2020 21:37
@taraspos
Copy link
Copy Markdown
Contributor Author

taraspos commented Mar 9, 2020

Sorry for the delay. Fixed!

@ChrisHines
Copy link
Copy Markdown
Member

LGTM, thanks for the contribution!

@ChrisHines ChrisHines merged commit ad60314 into go-kit:master Mar 10, 2020
@sagikazarmark sagikazarmark added this to the v0.11.0 milestone Jun 19, 2021
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.

4 participants