[
https://issues.apache.org/jira/browse/DISPATCH-178?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14944943#comment-14944943
]
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_r41256741
--- Diff: src/server.c ---
@@ -282,6 +294,16 @@ static void thread_process_listeners_LH(qd_server_t
*qd_server)
pn_transport_set_max_frame(tport, config->max_frame_size);
pn_transport_set_idle_timeout(tport, config->idle_timeout_seconds
* 1000);
+ //
+ // Proton pushes out its trace to qd_log_tracer() which in turn
writes a trace message to the qdrouter log
+ // If trace level logging is enabled on the router set
PN_TRACE_FRM on the proton transport
+ //
+ if (qd_log_enabled(qd_server->log_source, QD_LOG_TRACE)) {
+ pn_transport_set_context(tport, ctx);
--- End diff --
We should set the context unconditionally on all transports.
> 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: [email protected]
For additional commands, e-mail: [email protected]