-
Notifications
You must be signed in to change notification settings - Fork 783
Log deletion too greedy #195
Copy link
Copy link
Closed
Labels
enhancementImprovement to an already existing featureImprovement to an already existing feature
Description
Using the file sink, when loguru goes to clean up old logs due to retention setting. It is a bit too greedy with what it thinks are old logs. I am using the filename flexget.log, and the glob for deletion comes out to flexget.*. This strikes me as a bit greedy, and in my particular case it tries to delete a folder called FlexGet.egg-info (which is read only and causes a crash.) The two easy improvements I can see are:
- Include the extension in the glob
- Exclude folders
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementImprovement to an already existing featureImprovement to an already existing feature