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 <[email protected]>
Authored: Tue Apr 11 17:02:51 2017 -0400
Committer: Alan Conway <[email protected]>
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to