couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@apache.org
Subject [1/2] couch-log commit: updated refs/heads/master to 038586b
Date Mon, 25 Jul 2016 17:28:08 GMT
Repository: couchdb-couch-log
Updated Branches:
  refs/heads/master da0e48964 -> 038586b7a


Add support for traces with an argument list


Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-log/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-log/commit/b6eca222
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-log/tree/b6eca222
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch-log/diff/b6eca222

Branch: refs/heads/master
Commit: b6eca222b0f96de91456f79cbca4667607aafe31
Parents: da0e489
Author: Paul J. Davis <paul.joseph.davis@gmail.com>
Authored: Mon Jul 25 12:26:28 2016 -0500
Committer: Paul J. Davis <paul.joseph.davis@gmail.com>
Committed: Mon Jul 25 12:26:28 2016 -0500

----------------------------------------------------------------------
 src/couch_log_formatter.erl | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch-log/blob/b6eca222/src/couch_log_formatter.erl
----------------------------------------------------------------------
diff --git a/src/couch_log_formatter.erl b/src/couch_log_formatter.erl
index a2c5305..089c80f 100644
--- a/src/couch_log_formatter.erl
+++ b/src/couch_log_formatter.erl
@@ -283,10 +283,18 @@ format_reason({Reason, [{M, F, A} | _] = Trace})
         when is_atom(M), is_atom(F), is_integer(A) ->
     [format_reason(Reason), " at ", format_trace(Trace)];
 
+format_reason({Reason, [{M, F, A} | _] = Trace})
+        when is_atom(M), is_atom(F), is_list(A) ->
+    [format_reason(Reason), " at ", format_trace(Trace)];
+
 format_reason({Reason, [{M, F, A, Props} | _] = Trace})
         when is_atom(M), is_atom(F), is_integer(A), is_list(Props) ->
     [format_reason(Reason), " at ", format_trace(Trace)];
 
+format_reason({Reason, [{M, F, A, Props} | _] = Trace})
+        when is_atom(M), is_atom(F), is_list(A), is_list(Props) ->
+    [format_reason(Reason), " at ", format_trace(Trace)];
+
 format_reason(Reason) ->
     {Str, _} = couch_log_trunc_io:print(Reason, 500),
     Str.


Mime
View raw message