Skip to content

Commit

Permalink
Log backtrace of exceptions in commands.
Browse files Browse the repository at this point in the history
  • Loading branch information
dblock committed Apr 22, 2018
1 parent cb442e9 commit 4d1b1ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/slack-ruby-bot/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ def handle_exceptions
logger.error e
sleep 1 # ignore, try again
rescue StandardError => e
logger.error e
logger.error e.message
logger.error e.backtrace.join("\n")
raise e
ensure
@client = nil
Expand Down

0 comments on commit 4d1b1ad

Please sign in to comment.