commit | d9757ad76a1046c7f858ea07ddcf0bf1dbfb6fef | [log] [tgz] |
---|---|---|
author | Paul J. Davis <paul.joseph.davis@gmail.com> | Mon Apr 28 23:21:23 2014 -0500 |
committer | Robert Newson <rnewson@apache.org> | Fri Sep 18 14:07:10 2015 +0100 |
tree | 05d1f5cad5621c86e31e4936561c4afe7ed6249d | |
parent | ea18f4f63032bda0f1e5adffc407c76b048382ac [diff] |
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
Twig is a SASL-compliant Erlang/OTP logger. It installs a gen_event handler in the error_logger event manager, where it consumes standard OTP reports and messages as well as events generated by twig:log/2,3,4. Log messages are written to a syslog server over UDP using the format specified in RFC 5424.
Twig's behavior is controlled using the application environment: