diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-06-06 07:42:56 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-06-06 07:42:56 +0000 |
commit | fac515bf384d1cb8fe30a310bb38904b1dc74f58 (patch) | |
tree | dff2327d173f90820ec3398421c137d20dd3bc65 | |
parent | 009760bdb7ba08246b98f4befe856cbda2ce769a (diff) | |
download | clogger-fac515bf384d1cb8fe30a310bb38904b1dc74f58.tar.gz |
It's unintuitive that merely setting the environment variable to an empty string or zero would be a boolean true.
-rw-r--r-- | lib/clogger.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/clogger.rb b/lib/clogger.rb index 5b035d9..ca102ba 100644 --- a/lib/clogger.rb +++ b/lib/clogger.rb @@ -151,7 +151,7 @@ end require 'clogger/format' begin - raise LoadError if ENV['CLOGGER_PURE'] + raise LoadError if ENV['CLOGGER_PURE'].to_i != 0 require 'clogger_ext' rescue LoadError require 'clogger/pure' |