Skip to content

Commit 84d309a

Browse files
author
Arthur Zakirov
committed
Create log rotation file per each log file
1 parent 1e6d294 commit 84d309a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/logger.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ open_logfile(FILE **file, const char *filename_format)
410410
filename = logfile_getname(filename_format, cur_time);
411411

412412
/* "log_path" was checked in logfile_getname() */
413-
snprintf(control, MAXPGPATH, "%s/log_rotation", log_path);
413+
snprintf(control, MAXPGPATH, "%s.rotation", filename);
414414

415415
if (stat(filename, &st) == -1)
416416
{

0 commit comments

Comments
 (0)