summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPhilip Hazel <ph10@hermes.cam.ac.uk>2005-04-06 10:06:14 +0000
committerPhilip Hazel <ph10@hermes.cam.ac.uk>2005-04-06 10:06:14 +0000
commit31619da69c9e692f006db273d95d20ae279a7d39 (patch)
tree67d73c254bb982193c99cea04915ce28eceb599a /src
parentc2c19e9d1770ce26d595d9300f1f2e8c68125ba4 (diff)
Show command line arguments in debugging output, even without
log_selector=+arguments.
Diffstat (limited to 'src')
-rw-r--r--src/src/exim.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/src/exim.c b/src/src/exim.c
index ffe596d15..35151c28c 100644
--- a/src/src/exim.c
+++ b/src/src/exim.c
@@ -1,4 +1,4 @@
-/* $Cambridge: exim/src/src/exim.c,v 1.17 2005/03/22 14:11:54 ph10 Exp $ */
+/* $Cambridge: exim/src/src/exim.c,v 1.18 2005/04/06 10:06:14 ph10 Exp $ */
/*************************************************
* Exim - an Internet mail transport agent *
@@ -3237,8 +3237,8 @@ a debugging feature for finding out what arguments certain MUAs actually use.
Don't attempt it if logging is disabled, or if listing variables or if
verifying/testing addresses or expansions. */
-if ((log_extra_selector & LX_arguments) != 0 && really_exim
- && !list_options && !checking)
+if (((debug_selector & D_any) != 0 || (log_extra_selector & LX_arguments) != 0)
+ && really_exim && !list_options && !checking)
{
int i;
uschar *p = big_buffer;
@@ -3270,7 +3270,11 @@ if ((log_extra_selector & LX_arguments) != 0 && really_exim
(p - big_buffer) - 4), printing, quote);
while (*p) p++;
}
- log_write(0, LOG_MAIN, "%s", big_buffer);
+
+ if ((log_extra_selector & LX_arguments) != 0)
+ log_write(0, LOG_MAIN, "%s", big_buffer);
+ else
+ debug_printf("%s\n", big_buffer);
}
/* Set the working directory to be the top-level spool directory. We don't rely