-
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
@@ -181,7 +181,7 @@ | |||
else { | |||
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
if ( log.isDebugEnabled() ) { | ||
log.debugf( "Locking cache item [region=`%s` (%s)] : `%s` (timeout=%s, version=%s)", getRegion().getName(), getAccessType(), key, timeout, version ); | ||
if ( log.isTraceEnabled() ) { | ||
log.tracef( "Locking cache item [region=`%s` (%s)] : `%s` (timeout=%s, version=%s)", getRegion().getName(), getAccessType(), key, timeout, version ); |
Check failure
Code scanning / CodeQL
Insertion of sensitive information into log files High
potentially sensitive information
@@ -205,7 +205,7 @@ | |||
|
|||
protected void handleLockExpiry(SharedSessionContractImplementor session, Object key, Lockable lock) { | |||
L2CACHE_LOGGER.softLockedCacheExpired( getRegion().getName(), key ); | |||
log.debugf( "Cached entry expired : %s", key ); | |||
log.tracef( "Cached entry expired: %s", key ); |
Check failure
Code scanning / CodeQL
Insertion of sensitive information into log files High
potentially sensitive information
@@ -219,7 +219,7 @@ | |||
@Override | |||
public void remove(SharedSessionContractImplementor session, Object key) { | |||
if ( getStorageAccess().getFromCache( key, session ) instanceof SoftLock ) { | |||
log.debugf( "Skipping #remove call in read-write access to maintain SoftLock : %s", key ); | |||
log.debugf( "Skipping #remove call in read-write access to maintain SoftLock: %s", key ); |
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
@@ -1015,7 +1015,7 @@ | |||
public Object immediateLoad(String entityName, Object id) { | |||
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
LOG.trace( "Caching collection: " | ||
+ collectionInfoString( collectionDescriptor, collectionInstance, key, session ) ); |
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.