From 84d309a6887f2c9df26b807c889a600b899a1301 Mon Sep 17 00:00:00 2001 From: Arthur Zakirov Date: Sat, 10 Jun 2017 23:53:51 +0300 Subject: [PATCH] Create log rotation file per each log file --- utils/logger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/logger.c b/utils/logger.c index 8dce9c13..2d219e75 100644 --- a/utils/logger.c +++ b/utils/logger.c @@ -410,7 +410,7 @@ open_logfile(FILE **file, const char *filename_format) filename = logfile_getname(filename_format, cur_time); /* "log_path" was checked in logfile_getname() */ - snprintf(control, MAXPGPATH, "%s/log_rotation", log_path); + snprintf(control, MAXPGPATH, "%s.rotation", filename); if (stat(filename, &st) == -1) {