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

Change logrus imports to lowercase #88

Closed
wants to merge 1 commit into from
Closed

Change logrus imports to lowercase #88

wants to merge 1 commit into from

Conversation

artagel
Copy link
Contributor

@artagel artagel commented Mar 30, 2019

Please see issue 933 on logrus project (sirupsen/logrus#933).
According to their readme:
Seeing weird case-sensitive problems? It's in the past been possible to import Logrus as both upper- and lower-case. Due to the Go package environment, this caused issues in the community and we needed a standard. Some environments experienced problems with the upper-case variant, so the lower-case was decided. Everything using logrus will need to use the lower-case: github.com/sirupsen/logrus. Any package that isn't, should be changed.

The uppercase was causing errors building and running vouch due to their use of internal packages. The fix is to use the proper lowercase import as they described in their readme.

…imports should use the lowercase sirupsen. See paragraph two of their README.
@artagel artagel changed the title Logrus (https://github.com/sirupsen/logrus) has specified that their … Change logrus imports to lowercase Mar 30, 2019
@bnfinet
Copy link
Member

bnfinet commented Apr 2, 2019

Thanks for the contribution @artagel

I've just spent a little time ripping out logrus and installing zap https://github.com/uber-go/zap on a feature branch. Zap seems more performant and I'm a just a bit concerned by the message on Logrus asking for help.

Would you care to take a look at this? I'd love to get another set of eyes on it..
https://github.com/vouch/vouch-proxy/tree/feature/zap_logging

@artagel
Copy link
Contributor Author

artagel commented Apr 3, 2019

Sure. I’ll review it in the next day

@artagel
Copy link
Contributor Author

artagel commented Apr 3, 2019

I need to actually run the code, but overall my only comment is why use logger in some places and log in others. A standard variable would be better.

@artagel
Copy link
Contributor Author

artagel commented Apr 4, 2019

I took a look, yeah I like it.
The json is nice, and I think it's quite readable.

@bnfinet bnfinet closed this in d27196f Apr 5, 2019
bnfinet added a commit that referenced this pull request May 22, 2020
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