Skip to content

Commit c55c448

Browse files
committed
fixing LogFileProvider not starting
1 parent 6b706f9 commit c55c448

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Quick.Logger.Provider.Files.pas

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,11 @@ function TLogFileProvider.GetLogFileBackup(cNumBackup: Integer; zipped: Boolean)
341341
// Doing this twice to be backward compatible independent if the numbackup is formatted or not
342342
for i := 0 to 1 do
343343
begin
344-
Result := CalcRotateLogFileName (cNumBackup, '*', zipped, i = 0);
344+
if DailyRotate then
345+
Result := CalcRotateLogFileName (cNumBackup, '*', zipped, i = 0)
346+
else
347+
Result := CalcRotateLogFileName (cNumBackup, '', zipped, i = 0);
348+
345349
if findfirst (Result, faAnyFile, SearchRec) = 0 then
346350
Result := TPath.GetDirectoryName (Result) + PathDelim + SearchRec.Name
347351
else

0 commit comments

Comments
 (0)