Skip to content

Feature Request: Syslog disabling using ENV var #1

Description

@olleolleolle

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions