diff options
author | ILYA Khlopotov <iilyak@apache.org> | 2017-08-10 16:09:41 -0700 |
---|---|---|
committer | ILYA Khlopotov <iilyak@apache.org> | 2017-08-14 16:19:28 -0700 |
commit | 7dc5368891c93961e3d59bf335e516f2d463f5ba (patch) | |
tree | 8f56796c08b1363bc07865e5d2c4b5f5c409cee1 | |
parent | 7e969225ce851834addf3e80e115e3948719627c (diff) | |
download | couchdb-7dc5368891c93961e3d59bf335e516f2d463f5ba.tar.gz |
Log additional information on crashes from rexi
-rw-r--r-- | src/rexi/src/rexi_server.erl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/rexi/src/rexi_server.erl b/src/rexi/src/rexi_server.erl index 6cecdb8e7..614c3fc0c 100644 --- a/src/rexi/src/rexi_server.erl +++ b/src/rexi/src/rexi_server.erl @@ -138,7 +138,11 @@ init_p(From, {M,F,A}, Nonce) -> put(nonce, Nonce), try apply(M, F, A) catch exit:normal -> ok; Class:Reason -> Stack = clean_stack(), - couch_log:error("rexi_server ~p:~p ~100p", [Class, Reason, Stack]), + {ClientPid, _ClientRef} = From, + couch_log:error( + "rexi_server: from: ~s(~p) mfa: ~s:~s/~p ~p:~p ~100p", [ + node(ClientPid), ClientPid, M, F, length(A), + Class, Reason, Stack]), exit(#error{ timestamp = now(), reason = {Class, Reason}, |