summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-proc-mgmt.c
diff options
context:
space:
mode:
authorNandaja Varma <nandaja.varma@gmail.com>2015-03-05 13:41:10 +0530
committerKaushal M <kaushal@redhat.com>2015-05-06 04:36:01 -0700
commitdbf1ea8be8cc21787cfab9fa62ce7b48356705ec (patch)
treecb86b4ae943e54b6c15670f6c28519a2c99ee689 /xlators/mgmt/glusterd/src/glusterd-proc-mgmt.c
parenteeb41c11aeba4de93e979dfefc4d4c60b26d9447 (diff)
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 <nandaja.varma@gmail.com> Reviewed-on: http://review.gluster.org/9808 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Avra Sengupta <asengupt@redhat.com> Reviewed-on: http://review.gluster.org/10547
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-proc-mgmt.c')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-proc-mgmt.c7
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;