Skip to content
Browse files

Fix bug printing backtrace

  • Loading branch information...
1 parent e791dbc commit 839092d3b3f1710e74769ce2c086e76700468d7f @afcapel committed Mar 16, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/alondra/server.rb
View
4 lib/alondra/server.rb
@@ -11,7 +11,7 @@ def run
websocket.onopen do
session = SessionParser.parse(websocket)
-
+
Log.info "client connected."
Connection.new(websocket, session)
end
@@ -37,7 +37,7 @@ def run
EM.error_handler do |error|
puts "Error raised during event loop: #{error.message}"
Log.error "Error raised during event loop: #{error.message}"
- Log.error error.backtrace
+ Log.error error.backtrace.join("\n")
end
end
end

0 comments on commit 839092d

Please sign in to comment.
Something went wrong with that request. Please try again.