qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acon...@apache.org
Subject [06/10] qpid-dispatch git commit: DISPATCH-390: Log process ID with "Operational" notice
Date Thu, 27 Apr 2017 17:38:31 GMT
DISPATCH-390: Log process ID with "Operational" notice

Useful for correlating logs with running processes or core dumps.


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

Branch: refs/heads/master
Commit: 7fe0ac970b195a97c007174359d5d1f615d8d246
Parents: 6f56e28
Author: Alan Conway <aconway@redhat.com>
Authored: Tue Apr 11 17:02:51 2017 -0400
Committer: Alan Conway <aconway@redhat.com>
Committed: Thu Apr 27 13:29:54 2017 -0400

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


http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/7fe0ac97/src/server.c
----------------------------------------------------------------------
diff --git a/src/server.c b/src/server.c
index 15a2aef..d121cd4 100644
--- a/src/server.c
+++ b/src/server.c
@@ -1021,8 +1021,9 @@ void qd_server_run(qd_dispatch_t *qd)
     int i;
     assert(qd_server);
     assert(qd_server->container); // Server can't run without a container
-    qd_log(qd_server->log_source, QD_LOG_NOTICE, "Operational, %d Threads Running",
-           qd_server->thread_count);
+    qd_log(qd_server->log_source,
+           QD_LOG_NOTICE, "Operational, %d Threads Running (process ID %ld)",
+           qd_server->thread_count, (long)getpid());
 #ifndef NDEBUG
     qd_log(qd_server->log_source, QD_LOG_INFO, "Running in DEBUG Mode");
 #endif


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


Mime
View raw message