From: Richard Russon Date: Fri, 31 Aug 2018 13:29:46 +0000 (+0100) Subject: warn when logging at the highest level X-Git-Tag: 2019-10-25~674^2~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=07a3feecb724b12090afa03acea4a21ed2f95c22;p=neomutt warn when logging at the highest level --- diff --git a/mutt/logging.c b/mutt/logging.c index 76ccbe893..04ea7de65 100644 --- a/mutt/logging.c +++ b/mutt/logging.c @@ -193,6 +193,16 @@ int log_file_set_level(int level, bool verbose) log_file_open(verbose); } + if (LogFileLevel == LL_DEBUG5) + { + fprintf(LogFileFP, + "\n" + "WARNING:\n" + " Logging at this level can reveal personal information.\n" + " Review the log carefully before posting in bug reports.\n" + "\n"); + } + return 0; }