From 4b078cc079f221bb801988f1b5fed173ad40f9d6 Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Fri, 10 Oct 2014 09:51:28 +0530 Subject: logs: Do selective logging for errnos Backport of http://review.gluster.org/8918 http://review.gluster.org/8955 Problem: Just after replace-brick the mount logs are filled with ENOENT/ESTALE warning logs because the file is yet to be self-healed now that the brick is new. Fix: Do conditional logging for the logs. ENOENT/ESTALE will be logged at lower log level. Only when debug logs are enabled, these logs will be written to the logfile. Change-Id: If203d09e2479e8c2415ebc14fb79d4fbb81dfc95 BUG: 1155027 Signed-off-by: Pranith Kumar K Reviewed-on: http://review.gluster.org/8957 Tested-by: Gluster Build System Reviewed-by: Krutika Dhananjay Reviewed-by: Vijay Bellur --- libglusterfs/src/common-utils.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libglusterfs/src/common-utils.h') diff --git a/libglusterfs/src/common-utils.h b/libglusterfs/src/common-utils.h index a669e741e9a..0d5abb42ec2 100644 --- a/libglusterfs/src/common-utils.h +++ b/libglusterfs/src/common-utils.h @@ -650,4 +650,7 @@ gf_backtrace_save (char *buf); void gf_backtrace_done (char *buf); + +gf_loglevel_t +fop_log_level (glusterfs_fop_t fop, int op_errno); #endif /* _COMMON_UTILS_H */ -- cgit