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

default logger #51

Merged
merged 2 commits into from
Jun 16, 2014
Merged

default logger #51

merged 2 commits into from
Jun 16, 2014

Conversation

jehiah
Copy link
Member

@jehiah jehiah commented Jun 15, 2014

This sets the default logger for consumers/producers to stderr and set the default log level to info. This also removes the 'verbose' option as it was unused.

cc: @mreiferson

@jehiah
Copy link
Member Author

jehiah commented Jun 15, 2014

Another option could be to have the existing verbose flag set the default logger level, or we could move to a config flag that actually specifies the level more explicitly.

@@ -21,8 +21,6 @@ type Config struct {
sync.RWMutex
initOnce sync.Once

verbose bool `opt:"verbose"`
Copy link
Member

Choose a reason for hiding this comment

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

remove from the various function comments?

Copy link
Member Author

Choose a reason for hiding this comment

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

oops i had unsaved files i didn't get pushed up. squashed in the rest of this change.

@mreiferson
Copy link
Member

yea, this is a good idea 👍

@jehiah
Copy link
Member Author

jehiah commented Jun 16, 2014

RFM

@mreiferson
Copy link
Member

👍

mreiferson added a commit that referenced this pull request Jun 16, 2014
@mreiferson mreiferson merged commit c40f474 into nsqio:master Jun 16, 2014
@jehiah jehiah deleted the default_logger_51 branch June 27, 2014 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants