diff options
author | Nandaja Varma <nandaja.varma@gmail.com> | 2015-03-09 16:59:54 +0530 |
---|---|---|
committer | Atin Mukherjee <amukherj@redhat.com> | 2015-06-14 23:54:58 -0700 |
commit | 2ae034374ce449c54b1b4ae8350401371db1d8d3 (patch) | |
tree | 80bc6b96085dee378bdcd00bdfe1b51a89e48f84 /xlators/mgmt/glusterd/src/glusterd-pmap.c | |
parent | 79fdd93d1411e8b0f94f6ccb310ca5d05eb04054 (diff) |
glusterd: Porting messages to new logging framework.
Change-Id: I56ced6fca0246c230cc389132c47a0f60472ed0c
BUG: 1194640
Signed-off-by: Nandaja Varma <nandaja.varma@gmail.com>
Reviewed-on: http://review.gluster.org/9836
Tested-by: NetBSD Build System <jenkins@build.gluster.org>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-pmap.c')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-pmap.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-pmap.c b/xlators/mgmt/glusterd/src/glusterd-pmap.c index d739d8918cc..b95f73ea5a6 100644 --- a/xlators/mgmt/glusterd/src/glusterd-pmap.c +++ b/xlators/mgmt/glusterd/src/glusterd-pmap.c @@ -18,6 +18,7 @@ #include "portmap-xdr.h" #include "xdr-generic.h" #include "protocol-common.h" +#include "glusterd-messages.h" #include "rpcsvc.h" #include <sys/socket.h> @@ -218,7 +219,8 @@ pmap_registry_bind (xlator_t *this, int port, const char *brickname, pmap->ports[p].type = type; pmap->ports[p].xprt = xprt; - gf_log ("pmap", GF_LOG_INFO, "adding brick %s on port %d", + gf_msg ("pmap", GF_LOG_INFO, 0, + GD_MSG_BRICK_ADD, "adding brick %s on port %d", brickname, port); if (pmap->last_alloc < p) @@ -262,7 +264,8 @@ pmap_registry_remove (xlator_t *this, int port, const char *brickname, goto out; remove: - gf_log ("pmap", GF_LOG_INFO, "removing brick %s on port %d", + gf_msg ("pmap", GF_LOG_INFO, 0, + GD_MSG_BRICK_REMOVE, "removing brick %s on port %d", pmap->ports[p].brickname, p); free (pmap->ports[p].brickname); |