couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject [1/2] twig commit: updated refs/heads/master to ec94988
Date Fri, 18 Sep 2015 13:20:21 GMT
Repository: couchdb-twig
Updated Branches:
  refs/heads/master 9393f4d95 -> ec9498818


Fix logging of invalid Unicode data

The io:put_chars/1 function attempts to handle unicode conversions. This
would break when attempting to log a binary like <<255>> (which happens
to exist in #view_query_args{}). This just switches the call to
io:format/2 which does no Unicode conversion.

This bug should only affect dbcore nodes where no rsyslog host is
specified (namely, local development clusters).

BugzId: 30437


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

Branch: refs/heads/master
Commit: d9757ad76a1046c7f858ea07ddcf0bf1dbfb6fef
Parents: ea18f4f
Author: Paul J. Davis <paul.joseph.davis@gmail.com>
Authored: Mon Apr 28 23:21:23 2014 -0500
Committer: Robert Newson <rnewson@apache.org>
Committed: Fri Sep 18 14:07:10 2015 +0100

----------------------------------------------------------------------
 src/twig_event_handler.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-twig/blob/d9757ad7/src/twig_event_handler.erl
----------------------------------------------------------------------
diff --git a/src/twig_event_handler.erl b/src/twig_event_handler.erl
index d7b691b..9c69d9b 100644
--- a/src/twig_event_handler.erl
+++ b/src/twig_event_handler.erl
@@ -101,7 +101,7 @@ write(Level, MsgId, Msg, Pid, State) when is_list(Msg); is_binary(Msg)
->
     send(Socket, Host, Port, [Pre, Msg, $\n]).
 
 send(_, undefined, _, Packet) ->
-    io:put_chars(Packet);
+    io:format("~s", [Packet]);
 send(Socket, Host, Port, Packet) ->
     gen_udp:send(Socket, Host, Port, Packet).
 


Mime
View raw message