aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2011-10-24 17:06:16 +0200
committerLoïc Hoguin <[email protected]>2011-10-24 17:06:16 +0200
commit30a1d13ae9af2711890c0f14aae7df9cd56cb2c7 (patch)
tree7c0cef1d222875214d5a829c98c08f3834a20e1a /src
parentd7eec7d8c32c8efdac9aaadc989599836889589e (diff)
downloadcowboy-30a1d13ae9af2711890c0f14aae7df9cd56cb2c7.tar.gz
cowboy-30a1d13ae9af2711890c0f14aae7df9cd56cb2c7.tar.bz2
cowboy-30a1d13ae9af2711890c0f14aae7df9cd56cb2c7.zip
Make sure the correct callback name is displayed in websocket errors
Diffstat (limited to 'src')
-rw-r--r--src/cowboy_http_websocket.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cowboy_http_websocket.erl b/src/cowboy_http_websocket.erl
index a061ad0..a5bc5f8 100644
--- a/src/cowboy_http_websocket.erl
+++ b/src/cowboy_http_websocket.erl
@@ -378,11 +378,11 @@ handler_call(State=#state{handler=Handler, opts=Opts}, Req, HandlerState,
websocket_close(State, Req2, HandlerState2, {normal, shutdown})
catch Class:Reason ->
error_logger:error_msg(
- "** Handler ~p terminating in websocket_handle/3~n"
+ "** Handler ~p terminating in ~p/3~n"
" for the reason ~p:~p~n** Message was ~p~n"
"** Options were ~p~n** Handler state was ~p~n"
"** Request was ~p~n** Stacktrace: ~p~n~n",
- [Handler, Class, Reason, Message, Opts,
+ [Handler, Callback, Class, Reason, Message, Opts,
HandlerState, Req, erlang:get_stacktrace()]),
websocket_close(State, Req, HandlerState, {error, handler})
end.