Skip to content

Commit 01dcf9f

Browse files
committed
disable TRACE logging from SqmFunctionRegistry
at least for now - it was just too ugly and verbose
1 parent a199e59 commit 01dcf9f

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

hibernate-core/src/main/java/org/hibernate/query/sqm/function/SqmFunctionRegistry.java

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
import org.hibernate.type.BasicType;
1919
import org.hibernate.type.spi.TypeConfiguration;
2020

21-
import org.jboss.logging.Logger;
22-
2321
import org.checkerframework.checker.nullness.qual.Nullable;
2422

2523
import static java.lang.String.CASE_INSENSITIVE_ORDER;
@@ -36,14 +34,14 @@
3634
* @author Steve Ebersole
3735
*/
3836
public class SqmFunctionRegistry {
39-
private static final Logger log = Logger.getLogger( SqmFunctionRegistry.class );
37+
// private static final Logger log = Logger.getLogger( SqmFunctionRegistry.class );
4038

4139
private final CaseInsensitiveDictionary<SqmFunctionDescriptor> functionMap = new CaseInsensitiveDictionary<>();
4240
private final CaseInsensitiveDictionary<SqmSetReturningFunctionDescriptor> setReturningFunctionMap = new CaseInsensitiveDictionary<>();
4341
private final CaseInsensitiveDictionary<String> alternateKeyMap = new CaseInsensitiveDictionary<>();
4442

4543
public SqmFunctionRegistry() {
46-
log.trace( "SqmFunctionRegistry created" );
44+
// log.trace( "SqmFunctionRegistry created" );
4745
}
4846

4947
public Set<String> getValidFunctionKeys() {
@@ -121,12 +119,13 @@ public Stream<Map.Entry<String, SqmSetReturningFunctionDescriptor>> getSetReturn
121119
*/
122120
public SqmFunctionDescriptor register(String registrationKey, SqmFunctionDescriptor function) {
123121
final SqmFunctionDescriptor priorRegistration = functionMap.put( registrationKey, function );
124-
log.tracef(
125-
"Registered SqmFunctionTemplate [%s] under %s; prior registration was %s",
126-
function,
127-
registrationKey,
128-
priorRegistration
129-
);
122+
// Incredibly verbose logging disabled
123+
// log.tracef(
124+
// "Registered SqmFunctionTemplate [%s] under %s; prior registration was %s",
125+
// function,
126+
// registrationKey,
127+
// priorRegistration
128+
// );
130129
alternateKeyMap.remove( registrationKey );
131130
return function;
132131
}
@@ -136,12 +135,12 @@ public SqmFunctionDescriptor register(String registrationKey, SqmFunctionDescrip
136135
*/
137136
public SqmSetReturningFunctionDescriptor register(String registrationKey, SqmSetReturningFunctionDescriptor function) {
138137
final SqmSetReturningFunctionDescriptor priorRegistration = setReturningFunctionMap.put( registrationKey, function );
139-
log.tracef(
140-
"Registered SqmSetReturningFunctionTemplate [%s] under %s; prior registration was %s",
141-
function,
142-
registrationKey,
143-
priorRegistration
144-
);
138+
// log.tracef(
139+
// "Registered SqmSetReturningFunctionTemplate [%s] under %s; prior registration was %s",
140+
// function,
141+
// registrationKey,
142+
// priorRegistration
143+
// );
145144
alternateKeyMap.remove( registrationKey );
146145
return function;
147146
}
@@ -385,7 +384,8 @@ public SqmFunctionDescriptor wrapInJdbcEscape(String name, SqmFunctionDescriptor
385384

386385
public void registerAlternateKey(String alternateKey, String mappedKey) {
387386
assert functionMap.containsKey( mappedKey );
388-
log.tracef( "Registering alternate key : %s -> %s", alternateKey, mappedKey );
387+
// Incredibly verbose logging disabled
388+
// log.tracef( "Registering alternate key : %s -> %s", alternateKey, mappedKey );
389389
alternateKeyMap.put( alternateKey, mappedKey );
390390
}
391391

0 commit comments

Comments
 (0)