登陆服务器报错
QiuleiWang opened this issue · comments
=ERROR REPORT==== 23-Mar-2017::17:16:20 ===
Ranch listener http had connection process started with cowboy_clear:start_link/4 at <0.458.0> exit with reason: {undef,[{ws_handler,websocket_handle,[{text,<<"{"type":"login","name":"test"}">>},[]],[]},{cowboy_websocket,handler_call,6,[{file,"src/cowboy_websocket.erl"},{line,331}]},{cowboy_http,loop,2,[{file,"src/cowboy_http.erl"},{line,175}]},{cowboy_clear,proc_lib_hack,5,[{file,"src/cowboy_clear.erl"},{line,29}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,247}]}]}
这个事什么原因呢?还有麻烦大哥,给说下erlang怎么打日志到console的,我不会erlang,搞半天看不到日志。
我是dota_release console 这样启动的,启动以后 io:format的都看不到,是用别的函数打印还是?麻烦给说下。谢谢了。
Ranch listener http had connection process started with cowboy_clear:start_link/4 at <0.470.0> exit with reason: {undef,[{ws_handler,websocket_handle,[{text,<<"{"type":"login","name":"12313"}">>},[]],[]},{cowboy_websocket,handler_call,6,[{file,"src/cowboy_websocket.erl"},{line,331}]},{cowboy_http,loop,2,[{file,"src/cowboy_http.erl"},{line,175}]},{cowboy_clear,proc_lib_hack,5,[{file,"src/cowboy_clear.erl"},{line,29}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,247}]}]}
console里看到的json串都有转义字符的,发上来就没有了。
已经自行解决,谢谢。