lighter punctuation in binding/extracting log message (#6790)

This commit is contained in:
Gavin King 2023-06-15 16:22:36 +02:00 committed by GitHub
parent 96941f3775
commit aff3c105b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 11 additions and 11 deletions

View File

@ -26,7 +26,7 @@ public interface JdbcBindingLogging {
assert TRACE_ENABLED;
LOGGER.tracef(
"binding parameter [%s] as [%s] - [%s]",
"binding parameter (%s:%s) <- [%s]",
jdbcPosition,
JdbcTypeNameMapper.getTypeName( typeCode ),
value
@ -37,7 +37,7 @@ public interface JdbcBindingLogging {
assert TRACE_ENABLED;
LOGGER.tracef(
"binding parameter [%s] as [%s] - [null]",
"binding parameter (%s:%s) <- [null]",
jdbcPosition,
JdbcTypeNameMapper.getTypeName( typeCode )
);
@ -47,7 +47,7 @@ public interface JdbcBindingLogging {
assert TRACE_ENABLED;
LOGGER.tracef(
"binding parameter [%s] as [%s] - [%s]",
"binding parameter (%s:%s) <- [%s]",
callableParameterName,
JdbcTypeNameMapper.getTypeName( typeCode ),
value
@ -58,7 +58,7 @@ public interface JdbcBindingLogging {
assert TRACE_ENABLED;
LOGGER.tracef(
"binding parameter [%s] as [%s] - [null]",
"binding parameter (%s:%s) <- [null]",
callableParameterName,
JdbcTypeNameMapper.getTypeName( typeCode )
);

View File

@ -26,7 +26,7 @@ public interface JdbcExtractingLogging {
assert TRACE_ENABLED;
JdbcExtractingLogging.LOGGER.tracef(
"extracted value ([%s] : [%s]) - [%s]",
"extracted value (%s:%s) -> [%s]",
jdbcPosition,
JdbcTypeNameMapper.getTypeName( typeCode ),
value
@ -37,7 +37,7 @@ public interface JdbcExtractingLogging {
assert TRACE_ENABLED;
JdbcExtractingLogging.LOGGER.tracef(
"extracted value ([%s] : [%s]) - [null]",
"extracted value (%s:%s) -> [null]",
jdbcPosition,
JdbcTypeNameMapper.getTypeName( typeCode )
);
@ -47,7 +47,7 @@ public interface JdbcExtractingLogging {
assert TRACE_ENABLED;
JdbcExtractingLogging.LOGGER.tracef(
"extracted value ([%s] : [%s]) - [%s]",
"extracted value (%s:%s) -> [%s]",
callableParamName,
JdbcTypeNameMapper.getTypeName( typeCode ),
value
@ -58,7 +58,7 @@ public interface JdbcExtractingLogging {
assert TRACE_ENABLED;
JdbcExtractingLogging.LOGGER.tracef(
"extracted value ([%s] : [%s]) - [null]",
"extracted value (%s:%s) -> [null]",
callableParamName,
JdbcTypeNameMapper.getTypeName( typeCode )
);

View File

@ -89,7 +89,7 @@ public final class JdbcTypeNameMapper {
* If a type code is not recognized, it is reported as {@code UNKNOWN(?)} where '?'
* is replaced with the given type code.
*
* Intended as useful for logging purposes...
* @apiNote Useful for logging.
*
* @param typeCode The type code to find the name for.
*

View File

@ -32,7 +32,7 @@ import static org.junit.Assert.assertTrue;
*/
@MessageKeyInspection(
logger = @Logger( loggerName = JdbcBindingLogging.NAME ),
messageKey = "binding parameter ["
messageKey = "binding parameter"
)
@DomainModel( annotatedClasses = OrdinalEnumTypeTest.Person.class )
@SessionFactory

View File

@ -29,7 +29,7 @@ import static org.junit.Assert.assertTrue;
@MessageKeyInspection(
logger = @Logger( loggerName = JdbcBindingLogging.NAME ),
messageKey = "binding parameter ["
messageKey = "binding parameter"
)
@DomainModel( annotatedClasses = VarcharEnumTypeTest.Person.class )
@SessionFactory