From dbf1ea8be8cc21787cfab9fa62ce7b48356705ec Mon Sep 17 00:00:00 2001 From: Nandaja Varma Date: Thu, 5 Mar 2015 13:41:10 +0530 Subject: mgmt/glusterd: Porting messages to new logging framework Backport of: http://review.gluster.org/9808 Change-Id: I25f3536446798ea1cffd6b5dfbb3d2398766fcf3 BUG: 1194640 Signed-off-by: Nandaja Varma Reviewed-on: http://review.gluster.org/9808 Tested-by: Gluster Build System Reviewed-by: Avra Sengupta Reviewed-on: http://review.gluster.org/10547 --- xlators/mgmt/glusterd/src/glusterd-proc-mgmt.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'xlators/mgmt/glusterd/src/glusterd-proc-mgmt.c') diff --git a/xlators/mgmt/glusterd/src/glusterd-proc-mgmt.c b/xlators/mgmt/glusterd/src/glusterd-proc-mgmt.c index d6088a398fa..53092d35dbe 100644 --- a/xlators/mgmt/glusterd/src/glusterd-proc-mgmt.c +++ b/xlators/mgmt/glusterd/src/glusterd-proc-mgmt.c @@ -78,18 +78,19 @@ glusterd_proc_stop (glusterd_proc_t *proc, int sig, int flags) if (!gf_is_service_running (proc->pidfile, &pid)) { ret = 0; - gf_log (this->name, GF_LOG_INFO, "%s already stopped", + gf_msg (this->name, GF_LOG_INFO, 0, + GD_MSG_ALREADY_STOPPED, "%s already stopped", proc->name); goto out; } - gf_log (this->name, GF_LOG_DEBUG, "Stopping %s daemon running in pid: " + gf_msg_debug (this->name, 0, "Stopping %s daemon running in pid: " "%d", proc->name, pid); ret = kill (pid, sig); if (ret) { switch (errno) { case ESRCH: - gf_log (this->name, GF_LOG_DEBUG, "%s is already " + gf_msg_debug (this->name, 0, "%s is already " "stopped", proc->name); ret = 0; goto out; -- cgit