[ https://issues.apache.org/jira/browse/DISPATCH-178?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14944947#comment-14944947 ]
ASF GitHub Bot commented on DISPATCH-178: ----------------------------------------- Github user ted-ross commented on a diff in the pull request: https://github.com/apache/qpid-dispatch/pull/12#discussion_r41256898 --- Diff: src/server.c --- @@ -64,6 +64,15 @@ static qd_thread_t *thread(qd_server_t *qd_server, int id) qd_error_t qd_entity_update_connection(qd_entity_t* entity, void *impl); +/** + * This function is set as the pn_transport->tracer and is invoked when proton tries to write the log message to pn_transport->tracer + */ +static void qd_log_tracer(pn_transport_t *transport, const char *message) --- End diff -- It would be more accurate to call this function "qd_transport_tracer". > Route proton trace messages to the dispatch router log file instead of console > ------------------------------------------------------------------------------ > > Key: DISPATCH-178 > URL: https://issues.apache.org/jira/browse/DISPATCH-178 > Project: Qpid Dispatch > Issue Type: Improvement > Components: Router Node > Affects Versions: 0.5 > Reporter: Ganesh Murthy > Priority: Minor > > Steps to reproduce - > 1. Turn on proton frame level logging by doing the following on the command > line > export PN_TRACE_FRM=1 > 2. Add the following line to the dispatch router config file > (qdrouterd.conf). This will enable trace level logging on the dispatch router > and send log messages to qdrouterd.log. > log { > module: DEFAULT > enable: trace+ > output: qdrouterd.log > } > 3. Now start the dispatch router and receive and send messages using proton's > simple_receive.py and simple_send.py respectively. > You will notice that the AMQP frame level trace is shown on the console. The > frame level traffic handled/generated by the router should appear in the > qdrouterd.log file. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org For additional commands, e-mail: dev-h...@qpid.apache.org