Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on CompressLogFile #99

Open
fintechyazilim opened this issue Jul 25, 2023 · 1 comment
Open

Error on CompressLogFile #99

fintechyazilim opened this issue Jul 25, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@fintechyazilim
Copy link

Hi,
If you give DailyRotateFileDateFormat and set the DailyRotate = True the function of CompressLogFile thows an exception.
Because GetLogFileBackup parameter is True therefor GetLogFileBackup function returns empty result. (There is no zip file yet in the directory)
zip.Open(GetLogFileBackup(1,True),zmWrite);

Can you please check this line of the code?

etc: i have changed the code like this.
zipfile := GetLogFileBackup(1, False);
if zipfile.IsEmpty then Exit else zipfile := zipfile + '.zip';
Zip.Open(zipfile, zmWrite);

Thank you.

@exilon exilon added the bug Something isn't working label Oct 10, 2024
@exilon
Copy link
Owner

exilon commented Oct 10, 2024

Yes, I see. It's a bug. I'll fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants