diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2006-07-20 20:08:26 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2006-07-20 20:08:26 +0000 |
commit | 8c45acb731d8ba8bc07f0934af2d4aeda637b155 (patch) | |
tree | 50f9e19cbdfd36a6dfe49284b7607e14c09f16ee /lib/rbot/config.rb | |
parent | da24f0f90c86a399a716d90c645ab921d03c5f51 (diff) |
All lib/rbot files are now upgraded to the new logging feature
Diffstat (limited to 'lib/rbot/config.rb')
-rw-r--r-- | lib/rbot/config.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/rbot/config.rb b/lib/rbot/config.rb index c974c78f..a863c524 100644 --- a/lib/rbot/config.rb +++ b/lib/rbot/config.rb @@ -316,7 +316,7 @@ module Irc @@config.update newconfig return rescue - $stderr.puts "failed to read conf.yaml: #{$!}" + error "failed to read conf.yaml: #{$!}" end end # if we got here, we need to run the first-run wizard @@ -336,9 +336,9 @@ module Irc File.rename("#{@@bot.botclass}/conf.yaml.new", "#{@@bot.botclass}/conf.yaml") rescue => e - $stderr.puts "failed to write configuration file conf.yaml! #{$!}" - debug "#{e.class}: #{e}" - debug e.backtrace.join("\n") + error "failed to write configuration file conf.yaml! #{$!}" + error "#{e.class}: #{e}" + error e.backtrace.join("\n") end end |