-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Documented quarkus.log.handler.file...rotation.max-file-size default value is incorrect #24041
Comments
@loicmathieu it seems like you updated |
Well, the documentation changes has been validated by @dmlloyd so he may be able to spot a mistake more than me. |
The issue is that the default value displayed on the generated documentation is only for visualisation (see https://github.com/quarkusio/quarkus/blob/main/core/runtime/src/main/java/io/quarkus/runtime/logging/FileConfig.java#L61). The true default value will be whatever that is assigned by JBoss Logging, which is 640K. It could the case that the default value in upstream was updated and the change was not done on quarkus side or that at some point in time we moved from using Two solutions that I see here:
I am in favor of 1 so that any upstream default change does not affect the default value we apply and display on our docs. |
@machi1990 yeah I think it makes more sense to set it to 10 MB. |
Hey :) could i be assigned this issue. I'll get working on solution 1. |
+1
Thanks @VanillaSpoon consider the issue yours. What option 1 is to change the @ConfigItem(defaultValueDocumentation = "10") @ConfigItem(defaultValue = "10M") |
Fixed by #25072 |
Describe the bug
https://quarkus.io/guides/logging#quarkus-log-logging-log-config_quarkus.log.handler.file.-file-handlers-.rotation.max-file-size states the default size is
10
. Based on the MemorySize definition, this would mean 10 bytes. Actual value from observed system appears to be 640K.Expected behavior
No response
Actual behavior
No response
How to Reproduce?
No response
Output of
uname -a
orver
No response
Output of
java -version
No response
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.5.1
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response
The text was updated successfully, but these errors were encountered: