about summary refs log tree commit homepage
path: root/lib/clogger.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-06-06 07:42:56 +0000
committerEric Wong <normalperson@yhbt.net>2010-06-06 07:42:56 +0000
commitfac515bf384d1cb8fe30a310bb38904b1dc74f58 (patch)
treedff2327d173f90820ec3398421c137d20dd3bc65 /lib/clogger.rb
parent009760bdb7ba08246b98f4befe856cbda2ce769a (diff)
downloadclogger-fac515bf384d1cb8fe30a310bb38904b1dc74f58.tar.gz
It's unintuitive that merely setting the environment variable to
an empty string or zero would be a boolean true.
Diffstat (limited to 'lib/clogger.rb')
-rw-r--r--lib/clogger.rb2
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'