-
Notifications
You must be signed in to change notification settings - Fork 458
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
About the rotation of q2 logs #580
Comments
Thank you for the report. Can you confirm if your problem goes away if you use the following config?
without your trailing Deleting files is a dangerous operation. Setting DEF_MAXDEPTH to 1 as the default limit for recursive deletion operations provides a safer approach, but I agree with you that this should be configurable for situations where you know what you're doing. |
alcarraz
added a commit
to alcarraz/jPOS
that referenced
this issue
Feb 8, 2024
Signed-off-by: Andrés Alcarraz <alcarraz@gmail.com> jpos#580 About the rotation of q2 logs
alcarraz
added a commit
to alcarraz/jPOS
that referenced
this issue
Feb 8, 2024
So it does not fail on windows. Signed-off-by: Andrés Alcarraz <alcarraz@gmail.com> jpos#580 About the rotation of q2 logs
alcarraz
added a commit
to alcarraz/jPOS
that referenced
this issue
Feb 9, 2024
Signed-off-by: Andrés Alcarraz <alcarraz@gmail.com> jpos#580 About the rotation of q2 logs
alcarraz
added a commit
to alcarraz/jPOS
that referenced
this issue
Feb 10, 2024
Signed-off-by: Andrés Alcarraz <alcarraz@gmail.com> jpos#580 About the rotation of q2 logs
alcarraz
added a commit
to alcarraz/jPOS
that referenced
this issue
Feb 10, 2024
Signed-off-by: Andrés Alcarraz <alcarraz@gmail.com> jpos#580 About the rotation of q2 logs
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Regarding the rotation of q2 logs, I have configured the following content in the 00_logger.xml file to test the rotation and deletion of q2 logs, but the functionality to delete expired files is not working.
I have checked and debugged the source code and found that the issue lies in the DEF_MAXDEPTH parameter. The parameter determines the depth of file queries and has a default value of 1. As a result, it cannot find expired files under the "logs/q2" directory. I suggest making this parameter configurable in the 00_logger.xml file.
The text was updated successfully, but these errors were encountered: