File: log-stop-at-debug-level.patch

package info (click to toggle)
sendmail 8.18.1-8
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 12,496 kB
  • sloc: ansic: 105,736; perl: 7,504; sh: 5,488; makefile: 889
file content (16 lines) | stat: -rw-r--r-- 499 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: Log mi_stop flag at debug level when closing socket
Author: David Bürgin <dbuergin@gluet.ch>

--- a/libmilter/listener.c
+++ b/libmilter/listener.c
@@ -1000,8 +1000,8 @@ mi_listener(conn, dbg, smfi, timeout, ba
 		mi_stop_milters(MILTER_ABRT);
 	else
 	{
-		if (mistop != MILTER_CONT)
-			smi_log(SMI_LOG_INFO, "%s=%s",
+		if (mistop != MILTER_CONT && dbg > 0)
+			smi_log(SMI_LOG_DEBUG, "%s=%s",
 				smfi->xxfi_name,
 				MILTER_STOP == mistop ? "terminating"
 							: "aborting");