commit 910219e8a681539b3dc09aa70c8d206673ba6997
parent c41e3678e0d3e0558fc56732de6b2e49e9ddea9b
Author: Suraj N. Kurapati <sunaku@gmail.com>
Date: Fri, 27 Apr 2007 09:46:10 -0700
output is not captured by logger when $DEBUG is set
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/wmiirc b/wmiirc
@@ -17,11 +17,13 @@
LOG = Logger.new(__FILE__ + '.log', 5)
# capture standard output in logger
+ unless $DEBUG
class << LOG
alias write << # emulate IO.write
end
$stdout = $stderr = LOG
+ end
LOG.info "birth"