From: Sergey Cheremencev Date: Fri, 1 Dec 2017 14:47:35 +0000 (+0300) Subject: LU-10310 utils: change l_getidentity log level X-Git-Tag: 2.10.57~43 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=27b4374912f81d1270cdf4d58f9fcefe05b3d7c0;p=fs%2Flustre-release.git LU-10310 utils: change l_getidentity log level With current error level(NOTICE) l_getidentity error messages don't appear in kernel messages. Changing this level to WARNING may help to better and faster understanding that issue relates to l_getidentity. Change error level for errlog->vsyslog from LOG_NOTICE to LOG_WARNING. Test-Parameters: trivial Cray-bug-id: MRP-2132 Change-Id: If72a5ee52de89b15b4bb7fc0dda77915531dbc39 Signed-off-by: Sergey Cheremencev Reviewed-on: https://review.whamcloud.com/30338 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: John L. Hammond --- diff --git a/lustre/utils/l_getidentity.c b/lustre/utils/l_getidentity.c index 29b0c5e..6f8dff6 100644 --- a/lustre/utils/l_getidentity.c +++ b/lustre/utils/l_getidentity.c @@ -87,15 +87,15 @@ static int compare_u32(const void *v1, const void *v2) static void errlog(const char *fmt, ...) { - va_list args; + va_list args; - openlog(progname, LOG_PERROR | LOG_PID, LOG_AUTHPRIV); + openlog(progname, LOG_PERROR | LOG_PID, LOG_AUTHPRIV); - va_start(args, fmt); - vsyslog(LOG_NOTICE, fmt, args); - va_end(args); + va_start(args, fmt); + vsyslog(LOG_WARNING, fmt, args); + va_end(args); - closelog(); + closelog(); } int get_groups_local(struct identity_downcall_data *data,