X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/01f3091ab20e5b78419d2b7cff106b421600e553..b0d68adc8b45e42b425c23e7dbf195b772878b9a:/src/src/log.c?ds=sidebyside diff --git a/src/src/log.c b/src/src/log.c index 9e6809720..b01a179c0 100644 --- a/src/src/log.c +++ b/src/src/log.c @@ -503,6 +503,13 @@ log_write(0, LOG_PANIC_DIE, "Cannot open %s log file \"%s\": %s: " } +static void +unlink_log(int type) +{ +if (type == lt_debug) unlink(CS debuglog_name); +} + + /************************************************* * Add configuration file info to log line * @@ -1395,7 +1402,7 @@ int fd = -1; if (debug_file) { debug_printf("DEBUGGING ACTIVATED FROM WITHIN CONFIG.\n" - "DEBUG: Tag=\"%s\" Opts=\"%s\"\n", tag_name, opts ? opts : US""); + "DEBUG: Tag=\"%s\" opts=\"%s\"\n", tag_name, opts ? opts : US""); return; } @@ -1426,4 +1433,16 @@ else } +void +debug_logging_stop(void) +{ +if (!debug_file || !debuglog_name[0]) return; + +debug_selector = 0; +fclose(debug_file); +debug_file = NULL; +unlink_log(lt_debug); +} + + /* End of log.c */