Bug 66104 - Check for the existence of the log directory before executing the cleanup task at startup
Summary: Check for the existence of the log directory before executing the cleanup tas...
Status: RESOLVED FIXED
Alias: None
Product: Tomcat 10
Classification: Unclassified
Component: Catalina (show other bugs)
Version: unspecified
Hardware: PC Mac OS X 10.1
: P2 normal (vote)
Target Milestone: ------
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-05 07:28 UTC by Han Li
Modified: 2022-06-06 11:49 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Han Li 2022-06-05 07:28:32 UTC
If I specify a new logging directory and it does not exist, the message "java.util.logging.ErrorManager: 0: Unable to delete log files older than [90] days" will be displayed at startup. . The reason for this is that the directory is only created the first time the log is written, but when the cleanup task is performed at startup, the directory has not yet been created.
Although this doesn't affect anything, I think it needs to be solved.
Comment 1 Han Li 2022-06-05 07:32:26 UTC
the pr: https://github.com/apache/tomcat/pull/521
Comment 2 Mark Thomas 2022-06-06 11:49:47 UTC
Thanks for the PR.

Fixed in:
- 10.1.x for 10.1.0-M17 onwards
- 10.0.x for 10.0.23 onwards
- 9.0.x for 9.0.65 onwards
- 8.5.x for 8.5.80 onwards