summaryrefslogtreecommitdiffstats
path: root/libglusterfs
diff options
context:
space:
mode:
Diffstat (limited to 'libglusterfs')
-rw-r--r--libglusterfs/src/logging.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libglusterfs/src/logging.c b/libglusterfs/src/logging.c
index 0134d237cb4..85bfaf0b3ef 100644
--- a/libglusterfs/src/logging.c
+++ b/libglusterfs/src/logging.c
@@ -2442,6 +2442,10 @@ _gf_smsg(const char *domain, const char *file, const char *function,
va_list valist;
char *msg = NULL;
int ret = 0;
+ xlator_t *this = THIS;
+
+ if (skip_logging(this, level))
+ return ret;
va_start(valist, event);
ret = _do_slog_format(event, valist, &msg);
@@ -2465,6 +2469,10 @@ _gf_slog(const char *domain, const char *file, const char *function, int line,
va_list valist;
char *msg = NULL;
int ret = 0;
+ xlator_t *this = THIS;
+
+ if (skip_logging(this, level))
+ return ret;
va_start(valist, event);
ret = _do_slog_format(event, valist, &msg);