Skip to content

Commit

Permalink
fixing LogFileProvider not starting
Browse files Browse the repository at this point in the history
  • Loading branch information
pjrobin committed May 9, 2023
1 parent 6b706f9 commit c55c448
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Quick.Logger.Provider.Files.pas
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,11 @@ 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
Result := CalcRotateLogFileName (cNumBackup, '*', zipped, i = 0);
if DailyRotate then
Result := CalcRotateLogFileName (cNumBackup, '*', zipped, i = 0)
else
Result := CalcRotateLogFileName (cNumBackup, '', zipped, i = 0);

if findfirst (Result, faAnyFile, SearchRec) = 0 then
Result := TPath.GetDirectoryName (Result) + PathDelim + SearchRec.Name
else
Expand Down

0 comments on commit c55c448

Please sign in to comment.