diff options
author | Humble Devassy Chirammal <hchiramm@redhat.com> | 2015-04-25 12:44:15 +0530 |
---|---|---|
committer | Niels de Vos <ndevos@redhat.com> | 2015-04-28 05:46:31 -0700 |
commit | 8986a47c54db4769feb4e6664532386f1cd0275d (patch) | |
tree | d13b3b5593b36363f604e9cc6a0067bcbc85596d /api/src/glfs-master.c | |
parent | 315364b78cd152835cf6d30e32fd145a942e1d7a (diff) |
libgfapi : port gfapi to new logging framework
Change-Id: Iaa0a92f82b9a0a26eda1a8d72b3b66ce66fab443
BUG: 1194640
Signed-off-by: Humble Devassy Chirammal <hchiramm@redhat.com>
Reviewed-on: http://review.gluster.org/9918
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: jiffin tony Thottan <jthottan@redhat.com>
Reviewed-by: Raghavendra Talur <rtalur@redhat.com>
Reviewed-by: soumya k <skoduri@redhat.com>
Reviewed-by: Niels de Vos <ndevos@redhat.com>
Diffstat (limited to 'api/src/glfs-master.c')
-rw-r--r-- | api/src/glfs-master.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/api/src/glfs-master.c b/api/src/glfs-master.c index dfce2f9b78c..11843c15b4d 100644 --- a/api/src/glfs-master.c +++ b/api/src/glfs-master.c @@ -25,6 +25,7 @@ #include "glfs-internal.h" #include "glfs-mem-types.h" +#include "gfapi-messages.h" int @@ -88,7 +89,8 @@ notify (xlator_t *this, int event, void *data, ...) switch (event) { case GF_EVENT_GRAPH_NEW: - gf_log (this->name, GF_LOG_INFO, "New graph %s (%d) coming up", + gf_msg (this->name, GF_LOG_INFO, 0, API_MSG_NEW_GRAPH, + "New graph %s (%d) coming up", uuid_utoa ((unsigned char *)graph->graph_uuid), graph->id); break; @@ -117,8 +119,7 @@ notify (xlator_t *this, int event, void *data, ...) glfs_process_upcall_event (fs, data); break; default: - gf_log (this->name, GF_LOG_DEBUG, - "got notify event %d", event); + gf_msg_debug (this->name, 0, "got notify event %d", event); break; } @@ -136,7 +137,8 @@ mem_acct_init (xlator_t *this) ret = xlator_mem_acct_init (this, glfs_mt_end + 1); if (ret) { - gf_log (this->name, GF_LOG_ERROR, "Failed to initialise " + gf_msg (this->name, GF_LOG_ERROR, ENOMEM, + API_MSG_MEM_ACCT_INIT_FAILED, "Failed to initialise " "memory accounting"); return ret; } |