diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-04-11 17:32:26 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-04-11 17:32:26 +0000 |
commit | a9b32eae21a10254f67653c8ce92076300ba670b (patch) | |
tree | d57eb4880b67c79ab7d03a148a9712e12914926d /lib/rbot/timer.rb | |
parent | 51cd66a19fe4b1a3a3cd1dedd5b1f37ab08ccdc8 (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.rb | 6 |
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 |