git://git.exim.org
/
users
/
jgh
/
exim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ecc5f51
)
Enhance logging for unfound spoolfile
author
Jeremy Harris
<jgh146exb@wizmail.org>
Thu, 2 Jun 2016 14:16:59 +0000
(15:16 +0100)
committer
Jeremy Harris
<jgh146exb@wizmail.org>
Thu, 2 Jun 2016 14:16:59 +0000
(15:16 +0100)
src/src/spool_in.c
patch
|
blob
|
history
diff --git
a/src/src/spool_in.c
b/src/src/spool_in.c
index 8e3099d8888bb262a4c7895d6b61ea8a679c80e9..7eb42907c6e40aa324fd3c2b581c31cf516af766 100644
(file)
--- a/
src/src/spool_in.c
+++ b/
src/src/spool_in.c
@@
-50,7
+50,8
@@
for (i = 0; i < 2; i++)
{
uschar * fname;
int save_errno;
{
uschar * fname;
int save_errno;
- message_subdir[0] = split_spool_directory == (i == 0) ? id[5] : 0;
+
+ message_subdir[0] = split_spool_directory == i == 0 ? id[5] : 0;
fname = spool_fname(US"input", message_subdir, id, US"-D");
DEBUG(D_deliver) debug_printf("Trying spool file %s\n", fname);
fname = spool_fname(US"input", message_subdir, id, US"-D");
DEBUG(D_deliver) debug_printf("Trying spool file %s\n", fname);
@@
-61,10
+62,13
@@
for (i = 0; i < 2; i++)
{
if (i == 0) continue;
if (!queue_running)
{
if (i == 0) continue;
if (!queue_running)
- log_write(0, LOG_MAIN, "Spool file %s-D not found", id);
+ log_write(0, LOG_MAIN, "Spool%s%s file %s-D not found",
+ *queue_name ? " Q=" : "",
+ *queue_name ? queue_name : "",
+ id);
}
}
- else
log_write(0, LOG_MAIN, "Spool error for %s: %s", fname,
- strerror(errno));
+ else
+
log_write(0, LOG_MAIN, "Spool error for %s: %s", fname,
strerror(errno));
errno = save_errno;
return -1;
}
errno = save_errno;
return -1;
}