diff options
author | Dmitry Kim <dmitry point kim at gmail point com> | 2007-08-21 06:15:48 +0000 |
---|---|---|
committer | Dmitry Kim <dmitry point kim at gmail point com> | 2007-08-21 06:15:48 +0000 |
commit | 291d1dc8cbb398e3e62cbf92688e21561a0019f5 (patch) | |
tree | 400d14d89f6b2835f68fdfbf52bf24f58cc7e4b4 /lib/rbot/ircbot.rb | |
parent | ec408b8b010a0767f5d3b640f28fb840a66a1e72 (diff) |
* (ircbot) remove $cl_loglevel undefined warning
Diffstat (limited to 'lib/rbot/ircbot.rb')
-rw-r--r-- | lib/rbot/ircbot.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rbot/ircbot.rb b/lib/rbot/ircbot.rb index bb9c530d..c8b0d46f 100644 --- a/lib/rbot/ircbot.rb +++ b/lib/rbot/ircbot.rb @@ -10,7 +10,7 @@ $daemonize = false unless $daemonize $dateformat = "%Y/%m/%d %H:%M:%S" $logger = Logger.new($stderr) $logger.datetime_format = $dateformat -$logger.level = $cl_loglevel if $cl_loglevel +$logger.level = $cl_loglevel if defined? $cl_loglevel $logger.level = 0 if $debug require 'pp' @@ -426,7 +426,7 @@ class Bot $logger = Logger.new(@logfile, @config['log.keep'], @config['log.max_size']*1024*1024) $logger.datetime_format= $dateformat $logger.level = @config['log.level'] - $logger.level = $cl_loglevel if $cl_loglevel + $logger.level = $cl_loglevel if defined? $cl_loglevel $logger.level = 0 if $debug log_session_start |