Patchwork [BUG:1746] mgmt/glusterd: remove debug messages in cleanup_and_exit

login
register
Submitter Pranith K
Date 2010-09-30 07:52:52
Message ID <20100930075252.GA13338@dev.gluster.com>
Download mbox | patch
Permalink /patch/5097/
State Accepted
Headers show

Comments

Pranith K - 2010-09-30 07:52:52
Signed-off-by: Pranith Kumar K <pranithk@gluster.com>
---
 glusterfsd/src/glusterfsd.c                |    2 --
 xlators/mgmt/glusterd/src/glusterd-utils.c |    3 ++-
 2 files changed, 2 insertions(+), 3 deletions(-)

Patch

diff --git a/glusterfsd/src/glusterfsd.c b/glusterfsd/src/glusterfsd.c
index 332f8f3..10ed331 100644
--- a/glusterfsd/src/glusterfsd.c
+++ b/glusterfsd/src/glusterfsd.c
@@ -681,9 +681,7 @@  cleanup_and_exit (int signum)
         while (trav) {
                 if (trav->fini) {
                         THIS = trav;
-			gf_log ("", GF_LOG_NORMAL, "Calling fini for %s", trav->name);
                         trav->fini (trav);
-			gf_log ("", GF_LOG_NORMAL, "Done Calling fini for %s", trav->name);
                 }
                 trav = trav->next;
         }
diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.c b/xlators/mgmt/glusterd/src/glusterd-utils.c
index 1773229..923dbc6 100644
--- a/xlators/mgmt/glusterd/src/glusterd-utils.c
+++ b/xlators/mgmt/glusterd/src/glusterd-utils.c
@@ -801,7 +801,8 @@  glusterd_service_stop (const char *service, char *pidfile, int sig,
                         ret = kill (pid, SIGKILL);
                         if (ret) {
                                 gf_log ("", GF_LOG_ERROR, "Unable to "
-                                        "kill pid %d", pid);
+                                        "kill pid %d reason: %s", pid,
+                                        strerror(errno));
                                 goto out;
                         }
                         ret = unlink (pidfile);