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

Feature Request: logger methods to always return nil #46

Open
olleolleolle opened this issue Sep 23, 2015 · 1 comment
Open

Feature Request: logger methods to always return nil #46

olleolleolle opened this issue Sep 23, 2015 · 1 comment

Comments

@olleolleolle
Copy link

Background: Expected return value of a logging method call is nil.

Current behavior can be seen here.

TL;DR: When parentcall is nil, the @outputters collection will surprisingly be the return value of the call mylogger.warn 'halleluja'. That value is something like [], .i.e non-nil.

Proposed change: add a final nil line as the last line of the dynamically-defined "log-level methods".

@jesjos
Copy link

jesjos commented Sep 23, 2015

👍

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

No branches or pull requests

2 participants