Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit e02e09f

Browse files
committed
Fix writing to error_log_file without log_file
1 parent 5ab28f9 commit e02e09f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/logger.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ elog_internal(int elevel, const char *fmt, va_list args)
196196
if (error_log_file == NULL)
197197
open_logfile(&error_log_file, error_log_filename);
198198

199-
fprintf(log_file, "%s: ", strfbuf);
199+
fprintf(error_log_file, "%s: ", strfbuf);
200200
write_elevel(error_log_file, elevel);
201201

202202
vfprintf(error_log_file, fmt, error_args);

0 commit comments

Comments
 (0)