[Privoxy-commits] [privoxy] 13/15: init_error_log(): Include the reason for failures to open the log file
User Git
git at git.privoxy.org
Thu Oct 10 06:48:03 CEST 2024
This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository privoxy.
commit e8fab94f10ad67c52ceb425c4912c4725728f441
Author: Fabian Keil <fk at fabiankeil.de>
AuthorDate: Fri Sep 6 13:41:22 2024 +0200
init_error_log(): Include the reason for failures to open the log file
---
errlog.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/errlog.c b/errlog.c
index 3446b721..da6af45e 100644
--- a/errlog.c
+++ b/errlog.c
@@ -339,7 +339,7 @@ void init_error_log(const char *prog_name, const char *logfname)
* reopen it if the file name changed or if the
* configuration reload was caused by a SIGHUP.
*/
- log_error(LOG_LEVEL_INFO, "Failed to reopen logfile: \'%s\'. "
+ log_error(LOG_LEVEL_INFO, "Failed to reopen logfile: \'%s\': %E. "
"Retrying after closing the old file descriptor first. If that "
"doesn't work, Privoxy will exit without being able to log a message.",
logfname);
@@ -352,7 +352,8 @@ void init_error_log(const char *prog_name, const char *logfname)
if (NULL == fp)
{
- log_error(LOG_LEVEL_FATAL, "init_error_log(): can't open logfile: \'%s\'", logfname);
+ log_error(LOG_LEVEL_FATAL,
+ "init_error_log(): can't open logfile \'%s\': %E", logfname);
}
#ifdef FEATURE_EXTERNAL_FILTERS
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Privoxy-commits
mailing list