1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-06-02 22:57:34 +02:00

Fixed issue #154: Log files are overwritten rather than appended.

This commit is contained in:
David Steele 2015-11-20 09:18:12 -05:00
parent e5cf1d84a7
commit d89cd955d0

View File

@ -113,7 +113,7 @@ sub logFileSet
$bExists = true;
}
sysopen($hLogFile, $strFile, O_WRONLY | O_CREAT, 0660)
sysopen($hLogFile, $strFile, O_WRONLY | O_CREAT | O_APPEND, 0660)
or confess &log(ERROR, "unable to open log file ${strFile}", ERROR_FILE_OPEN);
if ($bExists)