duo_log_sync icon indicating copy to clipboard operation
duo_log_sync copied to clipboard

Support for duologsync.log Rotation & Max File Size

Open jjfallete opened this issue 2 years ago • 2 comments

RotatingFileHandler is necessary to prevent the duologsync.log file from increasing in size indefinitely until the disk fills.

This allows for 3 rotations of the log file (4 total), each capping at 25MB.

We tested this and it appears to be working, but I recommend additional testing or adjusting of the added code as desired.

jjfallete avatar Mar 03 '22 13:03 jjfallete

Is this needed so we dont have to manually clear out the log file ever so often? It just grows in size.

Coldfirex avatar Dec 15 '23 15:12 Coldfirex

@Coldfirex -- exactly. I'm not sure why Duo hasn't responded to this Pull Request. @MarkTripod-Duo maybe you can review?

It could be revised to be configurable within the ini as well, this was just a quick and dirty solution we've applied in our env.

jjfallete avatar Dec 15 '23 15:12 jjfallete