diff options
author | Nandaja Varma <nandaja.varma@gmail.com> | 2015-03-05 13:41:10 +0530 |
---|---|---|
committer | Kaushal M <kaushal@redhat.com> | 2015-05-04 22:14:29 -0700 |
commit | 6d7428d2018c061ca2791443bd90980f9755ded3 (patch) | |
tree | 9d705ed391ab0e546528b21a2c48c1f0a7df9d2f /xlators/mgmt/glusterd/src/glusterd-proc-mgmt.c | |
parent | e6f2472d2434ab43a30720ef4de2e0abc0a3f4ac (diff) |
mgmt/glusterd: Porting messages to new logging framework
Change-Id: I25f3536446798ea1cffd6b5dfbb3d2398766fcf3
BUG: 1194640
Signed-off-by: Nandaja Varma <nandaja.varma@gmail.com>
Reviewed-on: http://review.gluster.org/9808
Tested-by: NetBSD Build System
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Avra Sengupta <asengupt@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-proc-mgmt.c')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-proc-mgmt.c | 7 |
1 files changed, 4 insertions, 3 deletions
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; |