diff options
author | Mohamed Ashiq <mliyazud@redhat.com> | 2015-08-12 15:21:17 +0530 |
---|---|---|
committer | Niels de Vos <ndevos@redhat.com> | 2015-09-08 00:56:55 -0700 |
commit | 5046fc8f267851b4ce530f8a3ba41d5ac5c9ea87 (patch) | |
tree | 6d5514a750f950e41e60deb35d3e0ab68f8422ef /libglusterfs/src/xlator.c | |
parent | c87cef1763aac974bcd335965ba44fab46e4326d (diff) |
libglusterfs:Porting log messages to new framework
Backport of http://review.gluster.org/11896
Cherry picked from 038dfe57cf0c5944b0392332dbf5a00bb1208150
>Change-Id: I8625b7dc8941720cc7a864b8fddbcc7b4c485fcd
>BUG: 1252836
>Signed-off-by: Mohamed Ashiq <mliyazud@redhat.com>
>Reviewed-on: http://review.gluster.org/11896
>Tested-by: NetBSD Build System <jenkins@build.gluster.org>
>Tested-by: Gluster Build System <jenkins@build.gluster.com>
>Reviewed-by: Manikandan Selvaganesh <mselvaga@redhat.com>
>Reviewed-by: Niels de Vos <ndevos@redhat.com>
Change-Id: I8625b7dc8941720cc7a864b8fddbcc7b4c485fcd
BUG: 1258769
Signed-off-by: Mohamed Ashiq <mliyazud@redhat.com>
Reviewed-on: http://review.gluster.org/12076
Reviewed-by: Manikandan Selvaganesh <mselvaga@redhat.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Tested-by: NetBSD Build System <jenkins@build.gluster.org>
Reviewed-by: Niels de Vos <ndevos@redhat.com>
Diffstat (limited to 'libglusterfs/src/xlator.c')
-rw-r--r-- | libglusterfs/src/xlator.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/libglusterfs/src/xlator.c b/libglusterfs/src/xlator.c index 52f96c94a50..0de13900914 100644 --- a/libglusterfs/src/xlator.c +++ b/libglusterfs/src/xlator.c @@ -981,8 +981,8 @@ is_gf_log_command (xlator_t *this, const char *name, char *value) /* Some crude way to change the log-level of process */ if (!strcmp (name, "trusted.glusterfs.set-log-level")) { - /* */ - gf_log ("glusterfs", gf_log_get_loglevel(), + gf_msg ("glusterfs", gf_log_get_loglevel(), 0, + LG_MSG_SET_LOG_LEVEL, "setting log level to %d (old-value=%d)", log_level, gf_log_get_loglevel()); gf_log_set_loglevel (log_level); @@ -992,7 +992,8 @@ is_gf_log_command (xlator_t *this, const char *name, char *value) if (!strcmp (name, "trusted.glusterfs.fuse.set-log-level")) { /* */ - gf_log (this->name, gf_log_get_xl_loglevel (this), + gf_msg (this->name, gf_log_get_xl_loglevel (this), 0, + LG_MSG_SET_LOG_LEVEL, "setting log level to %d (old-value=%d)", log_level, gf_log_get_xl_loglevel (this)); gf_log_set_xl_loglevel (this, log_level); @@ -1011,7 +1012,8 @@ is_gf_log_command (xlator_t *this, const char *name, char *value) snprintf (key, 1024, "trusted.glusterfs.%s.set-log-level", trav->name); if (fnmatch (name, key, FNM_NOESCAPE) == 0) { - gf_log (trav->name, gf_log_get_xl_loglevel (trav), + gf_msg (trav->name, gf_log_get_xl_loglevel (trav), 0, + LG_MSG_SET_LOG_LEVEL, "setting log level to %d (old-value=%d)", log_level, gf_log_get_xl_loglevel (trav)); gf_log_set_xl_loglevel (trav, log_level); |