summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/latency.c
diff options
context:
space:
mode:
Diffstat (limited to 'libglusterfs/src/latency.c')
-rw-r--r--libglusterfs/src/latency.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libglusterfs/src/latency.c b/libglusterfs/src/latency.c
index b22f729500c..611615949fa 100644
--- a/libglusterfs/src/latency.c
+++ b/libglusterfs/src/latency.c
@@ -19,7 +19,7 @@
#include "xlator.h"
#include "common-utils.h"
#include "statedump.h"
-
+#include "libglusterfs-messages.h"
void
gf_set_fop_from_fn_pointer (call_frame_t *frame, struct xlator_fops *fops, void *fn)
@@ -182,7 +182,8 @@ gf_latency_toggle (int signum, glusterfs_ctx_t *ctx)
{
if (ctx) {
ctx->measure_latency = !ctx->measure_latency;
- gf_log ("[core]", GF_LOG_INFO,
+ gf_msg ("[core]", GF_LOG_INFO, 0,
+ LG_MSG_LATENCY_MEASUREMENT_STATE,
"Latency measurement turned %s",
ctx->measure_latency ? "on" : "off");
}