You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by tr...@apache.org on 2015/10/26 16:16:40 UTC

[2/2] qpid-dispatch git commit: DISPATCH-178 - Made the trace handler more defensive in case Proton loses the transport context.

DISPATCH-178 - Made the trace handler more defensive in case Proton loses the transport context.


Project: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/commit/fed493c6
Tree: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/tree/fed493c6
Diff: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/diff/fed493c6

Branch: refs/heads/master
Commit: fed493c6a5991ac4176b34c33fef2c230be4223a
Parents: 60d3cf9
Author: Ted Ross <tr...@redhat.com>
Authored: Mon Oct 26 11:15:24 2015 -0400
Committer: Ted Ross <tr...@redhat.com>
Committed: Mon Oct 26 11:15:24 2015 -0400

----------------------------------------------------------------------
 src/server.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/fed493c6/src/server.c
----------------------------------------------------------------------
diff --git a/src/server.c b/src/server.c
index f1f7343..bca3eb2 100644
--- a/src/server.c
+++ b/src/server.c
@@ -70,7 +70,8 @@ qd_error_t qd_entity_update_connection(qd_entity_t* entity, void *impl);
 static void qd_transport_tracer(pn_transport_t *transport, const char *message)
 {
     qd_connection_t *ctx = (qd_connection_t*) pn_transport_get_context(transport);
-    qd_log(ctx->server->log_source, QD_LOG_TRACE, "[%d]:%s", ctx->connection_id, message);
+    if (ctx)
+        qd_log(ctx->server->log_source, QD_LOG_TRACE, "[%d]:%s", ctx->connection_id, message);
 }
 
 static qd_error_t connection_entity_update_host(qd_entity_t* entity, qd_connection_t *conn)


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org