Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit84d309a

Browse files
author
Arthur Zakirov
committed
Create log rotation file per each log file
1 parent1e6d294 commit84d309a

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)

[8]ページ先頭

©2009-2025 Movatter.jp