Skip to content
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

SerializationTrackingCondition should not log warning when running in production mode #76

Open
mcollovati opened this issue Jan 2, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@mcollovati
Copy link
Contributor

On application startup SerializationTrackingCondition logs a warning message if preconditions (JVM add-opens flag and extendedDebugInfo system property) are not met

023-01-02 14:09:01.408  WARN 13 --- [           main] dinReplicatedSessionDevModeConfiguration : Serialization and deserialization traces cannot be detected if -Dsun.io.serialization.extendedDebugInfo system property is not enabled. Please add '-Dsun.io.serialization.extendedDebugInfo=true' to the JVM arguments.
2023-01-02 14:09:01.409  WARN 13 --- [           main] dinReplicatedSessionDevModeConfiguration : Reflection on ObjectInputStream and ObjectOutputStream classes is required for session serialization debug. Please open java.io to ALL-UNNAMED module, adding '--add-opens java.base/java.io=ALL-UNNAMED' to the JVM arguments.

However, the above logs are useless in production mode because the debug tool will not be active.

@heruan heruan added the enhancement New feature or request label Feb 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants