-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
HHH-19611 demote many DEBUG-level log messages to TRACE #10520
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
Conversation
|
Thanks for your pull request! This pull request does not follow the contribution rules. Could you have a look? ❌ All commit messages should start with a JIRA issue key matching pattern › This message was automatically generated. |
fc1ea5c to
75409ae
Compare
hibernate-core/src/main/java/org/hibernate/boot/internal/ClassLoaderAccessImpl.java
Fixed
Show fixed
Hide fixed
| if ( log.isDebugEnabled() ) { | ||
| log.debugf( "Performing JAXB binding of hbm.xml document : %s", origin.toString() ); | ||
| if ( log.isTraceEnabled() ) { | ||
| log.tracef( "Performing JAXB binding of hbm.xml document: %s", origin.toString() ); |
Check failure
Code scanning / CodeQL
Insertion of sensitive information into log files High
potentially sensitive information
| assert "entity-mappings".equals( rootElementLocalName ); | ||
| try { | ||
| log.debugf( "Performing JAXB binding of orm.xml document : %s", origin.toString() ); | ||
| log.tracef( "Performing JAXB binding of orm.xml document: %s", origin.toString() ); |
Check failure
Code scanning / CodeQL
Insertion of sensitive information into log files High
potentially sensitive information
| log.debugf( "Getting cached data from region [`%s` (%s)] by key [%s]", getRegion().getName(), getAccessType(), key ); | ||
| final boolean traceEnabled = log.isTraceEnabled(); | ||
| if ( traceEnabled ) { | ||
| log.tracef( "Getting cached data from region [`%s` (%s)] by key [%s]", getRegion().getName(), getAccessType(), key ); |
Check failure
Code scanning / CodeQL
Insertion of sensitive information into log files High
potentially sensitive information
| if ( debugEnabled ) { | ||
| log.debugf( "Cache miss : region = `%s`, key = `%s`", getRegion().getName(), key ); | ||
| if ( traceEnabled ) { | ||
| log.tracef( "Cache miss : region = `%s`, key = `%s`", getRegion().getName(), key ); |
Check failure
Code scanning / CodeQL
Insertion of sensitive information into log files High
potentially sensitive information
hibernate-core/src/main/java/org/hibernate/cache/spi/support/AbstractReadWriteAccess.java
Fixed
Show fixed
Hide fixed
| } | ||
|
|
||
| @Override | ||
| public void unlockItem(SharedSessionContractImplementor session, Object key, SoftLock lock) { |
Check failure
Code scanning / CodeQL
Insertion of sensitive information into log files High
potentially sensitive information
| } | ||
|
|
||
| @Override | ||
| public void remove(SharedSessionContractImplementor session, Object key) { |
Check failure
Code scanning / CodeQL
Insertion of sensitive information into log files High
potentially sensitive information
| this.timestamp = timestamp; | ||
| } | ||
|
|
||
| @Override |
Check failure
Code scanning / CodeQL
Insertion of sensitive information into log files High
potentially sensitive information
hibernate-core/src/main/java/org/hibernate/sql/results/internal/ResultsHelper.java
Fixed
Show fixed
Hide fixed
| if ( log.isDebugEnabled() ) { | ||
| final EntityPersister persister = requireEntityPersister( entityName ); | ||
| log.debugf( "Initializing proxy: %s", infoString( persister, id, getFactory() ) ); | ||
| log.tracef( "Initializing proxy: %s", infoString( persister, id, getFactory() ) ); |
Check failure
Code scanning / CodeQL
Insertion of sensitive information into log files High
potentially sensitive information
| if ( MULTI_KEY_LOAD_LOGGER.isDebugEnabled() ) { | ||
| MULTI_KEY_LOAD_LOGGER.debugf( "Batch fetching entity `%s#%s`", getLoadable().getEntityName(), id ); | ||
| if ( MULTI_KEY_LOAD_LOGGER.isTraceEnabled() ) { | ||
| MULTI_KEY_LOAD_LOGGER.tracef( "Batch fetching entity `%s#%s`", getLoadable().getEntityName(), id ); |
Check failure
Code scanning / CodeQL
Insertion of sensitive information into log files High
potentially sensitive information
Check failure
Code scanning / CodeQL
Insertion of sensitive information into log files High
potentially sensitive information
d5b0f6d to
91a2f1d
Compare
| log.debugf( "Caching data from load [region=`%s` (%s)] : key[%s] -> value[%s]", getRegion().getName(), getAccessType(), key, value ); | ||
| final boolean traceEnabled = log.isTraceEnabled(); | ||
| if ( traceEnabled ) { | ||
| log.tracef( "Caching data from load [region='%s' (%s)] : key[%s] -> value[%s]", getRegion().getName(), getAccessType(), key, value ); |
Check failure
Code scanning / CodeQL
Insertion of sensitive information into log files High
potentially sensitive information
since Quarkus insists on doing something completely crazy with our INFO level
put them all in a single log message
because it results in logging telling us not to do it
and clean up some Logger descriptions
…to JdbcLogging and include SF uuid in log messages
at least for now - it was just too verbose
at least for now - it was just too ugly and verbose
| // Incredibly verbose logging disabled | ||
| // LOG.tracef( "Adding type registration %s -> %s", key, type ); | ||
|
|
||
| final Type old = typesByName.put( key, type ); |
Check notice
Code scanning / CodeQL
Unread local variable Note
| // Incredibly verbose logging disabled | ||
| // LOG.tracef( "Adding type registration %s -> %s", key, type ); | ||
|
|
||
| final BasicTypeReference<?> old = typeReferencesByName.put( key, type ); |
Check notice
Code scanning / CodeQL
Unread local variable Note
motivated by work on logging cleanup
since Quarkus insists on doing something completely crazy with our INFO level
See https://hibernate.atlassian.net/browse/HHH-19611 for explanation.
[Please describe here what your change is about]
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license
and can be relicensed under the terms of the LGPL v2.1 license in the future at the maintainers' discretion.
For more information on licensing, please check here.