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 5123aa0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
### 0.11.1 (Next)

* [#185](https://github.com/slack-ruby/slack-ruby-bot/pull/185): Log backtrace of exceptions - [@dblock](https://github.com/dblock).
* Your contribution here.

### 0.11.0 (04/02/2018)
Expand Down
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 5123aa0

Please sign in to comment.