]> granicus.if.org Git - neomutt/commitdiff
warn when logging at the highest level
authorRichard Russon <rich@flatcap.org>
Fri, 31 Aug 2018 13:29:46 +0000 (14:29 +0100)
committerRichard Russon <rich@flatcap.org>
Fri, 31 Aug 2018 23:15:59 +0000 (00:15 +0100)
mutt/logging.c

index 76ccbe893784b3639950e2bf2a07ee6756a6bc06..04ea7de652a006a3d31a8c1f936edf99fe2492e9 100644 (file)
@@ -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;
 }