diff options
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; } |