summaryrefslogtreecommitdiff
path: root/lib/rbot/timer.rb
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-04-11 17:32:26 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-04-11 17:32:26 +0000
commita9b32eae21a10254f67653c8ce92076300ba670b (patch)
treed57eb4880b67c79ab7d03a148a9712e12914926d /lib/rbot/timer.rb
parent51cd66a19fe4b1a3a3cd1dedd5b1f37ab08ccdc8 (diff)
use pretty printing with Logger (debug, info, warning and error messages)
Diffstat (limited to 'lib/rbot/timer.rb')
-rw-r--r--lib/rbot/timer.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/rbot/timer.rb b/lib/rbot/timer.rb
index 181dd2db..c87c9c4d 100644
--- a/lib/rbot/timer.rb
+++ b/lib/rbot/timer.rb
@@ -51,9 +51,9 @@ module Timer
else
@func.call
end
- rescue => e
- error "Timer action #{self.inspect} with function #{@func.inspect} failed with error #{e.inspect}"
- error e.backtrace.join("\n")
+ rescue Exception => e
+ error "Timer action #{self.inspect} with function #{@func.inspect} failed!"
+ error e.pretty_inspect
# TODO maybe we want to block this Action?
end
return @once