Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions Quick.Logger.Provider.Files.pas
Original file line number Diff line number Diff line change
Expand Up @@ -344,11 +344,7 @@ function TLogFileProvider.GetLogFileBackup(cNumBackup: Integer; zipped: Boolean)
// Doing this twice to be backward compatible independent if the numbackup is formatted or not
for i := 0 to 1 do
begin
if DailyRotate then
Result := CalcRotateLogFileName (cNumBackup, '*', zipped, i = 0)
else
Result := CalcRotateLogFileName (cNumBackup, '', zipped, i = 0);

Result := CalcRotateLogFileName (cNumBackup, '*', zipped, i = 0);
if findfirst (Result, faAnyFile, SearchRec) = 0 then
Result := TPath.GetDirectoryName (Result) + PathDelim + SearchRec.Name
else
Expand Down