From 8c45acb731d8ba8bc07f0934af2d4aeda637b155 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Thu, 20 Jul 2006 20:08:26 +0000 Subject: All lib/rbot files are now upgraded to the new logging feature --- lib/rbot/auth.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'lib/rbot/auth.rb') diff --git a/lib/rbot/auth.rb b/lib/rbot/auth.rb index 04e1e98b..ad7283b4 100644 --- a/lib/rbot/auth.rb +++ b/lib/rbot/auth.rb @@ -69,9 +69,9 @@ module Irc File.rename("#{@bot.botclass}/users.yaml.new", "#{@bot.botclass}/users.yaml") rescue - $stderr.puts "failed to write configuration file users.yaml! #{$!}" - debug "#{e.class}: #{e}" - debug e.backtrace.join("\n") + error "failed to write configuration file users.yaml! #{$!}" + error "#{e.class}: #{e}" + error e.backtrace.join("\n") end begin debug "Writing new levels.rbot ..." @@ -84,9 +84,9 @@ module Irc File.rename("#{@bot.botclass}/levels.rbot.new", "#{@bot.botclass}/levels.rbot") rescue - $stderr.puts "failed to write configuration file levels.rbot! #{$!}" - debug "#{e.class}: #{e}" - debug e.backtrace.join("\n") + error "failed to write configuration file levels.rbot! #{$!}" + error "#{e.class}: #{e}" + error e.backtrace.join("\n") end end -- cgit v1.2.3