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: Syslog disabling using ENV var #1

Open
olleolleolle opened this issue Nov 1, 2017 · 0 comments
Open

Feature Request: Syslog disabling using ENV var #1

olleolleolle opened this issue Nov 1, 2017 · 0 comments

Comments

@olleolleolle
Copy link

olleolleolle commented Nov 1, 2017

Hello!

I'm trying to support someone who's using tokenizer, which logs.

They're on a platform without Syslog support, and they reach the part of core which does Syslog access.

Perhaps they could set an ENV var, like:

  • ENABLE_SYSLOG=false
  • ENABLE_SYSLOG=no
  • ENABLE_SYSLOG=off
  • ENABLE_SYSLOG=0

But the code in this line: https://github.com/opener-project/core/blob/master/lib/opener/core/syslog.rb#L13 seems to expect "the empty string" to be false. (The empty string is not false in Ruby.)

Example, showing an "empty JUSTTESTING" environment variable to be "the empty string":

JUSTTESTING= ruby -e 'puts ENV.inspect'
@olleolleolle olleolleolle changed the title Syslog disabling using ENV var Feature Request: Syslog disabling using ENV var Nov 1, 2017
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

1 participant