Page 1 of 1

Email only errors logging file deletion

Posted: 12 Oct 2021, 11:41
by AxeR
Hi, I've enabled the feature to send log only if there are errors during backup, but I receive mail daily with zipped log files containing only "2021-10-12 00:00:00 Deleting the log files that are older than 7 days..."

I don't know if it's supposed to happen or not, but would be great if this doesn't get emailed, so I don't have to check the mail daily only to find out that it logged file deletion.

For now thanks so much for your great work!

Re: Email only errors logging file deletion

Posted: 12 Oct 2021, 15:42
by cobian
Will take a look at this. Thanks.

Re: Email only errors logging file deletion

Posted: 13 Oct 2021, 00:10
by AxeR
I just happened to run into a couple of "bugs":
  • Latest log is completely empty. I stooped the automated task since I was working and restarted manually a few hours later
  • Cobian sends every backup present each time
Let me know if there's something I can do, but for now, thank you so much!

Re: Email only errors logging file deletion

Posted: 13 Oct 2021, 00:30
by cobian
The program creates one log every day. The last log is created today at 12:00 PM so it has not have time to log anything yet.
Cobian sends every backup present each time
Do you mean every log file? You need to delete the log files after mailing (options-Log-Delete if successfully mailed) or they will be resend.

Re: Email only errors logging file deletion

Posted: 13 Oct 2021, 00:32
by cobian
So if you are not deleting any files... they all will be send again if there are old errors!

Re: Email only errors logging file deletion

Posted: 14 Oct 2021, 00:20
by AxeR
Ok, I thought it would send only the logs with errors created since the last backup task not all of them. I didn't check the "delete if mailed successfully" because I didn't want to delete them locally (there's no problem in doing so).

I'll test in the coming days if everything works as you intended and I'll let you know as soon as I have some data.

Thanks again for your hard work!

Re: Email only errors logging file deletion

Posted: 22 Oct 2021, 00:07
by AxeR
Just to close this thread, I want to give you a little update after a week of trying with your suggestions and fixes.

Now everything seems to work as expected except when a new version is released because it is logged as an error. Maybe I'm asking too much but would be nice if it was just a warning or info, so it wouldn't "mess up" the logs.

Thanks again for your amazing work!

Just a question out of curiosity, will this project ever be open-source?

Re: Email only errors logging file deletion

Posted: 22 Oct 2021, 00:44
by cobian
Options-General-Log new version as "error".