lib/pmux-gw/http_handler.rb in pmux-gw-0.1.4 vs lib/pmux-gw/http_handler.rb in pmux-gw-0.1.5
- old
+ new
@@ -439,14 +439,14 @@
:content => "not found #{@http_path_info} resource"})
return
end
rescue Exception => e
# 予期しない例外は500を返し、ログに残しておく
+ @logger.logging("error", "error occurred in http handler: #{e}")
+ @logger.logging("error", e.backtrace.join("\n"))
error_response({:status => 500,
:content_type => "text/plain",
:content => "error: #{e}"})
- @logger.logging("error", "error occurred in http handler: #{e}")
- @logger.logging("error", e.backtrace.join("\n"))
end
end
end
end
end