Invalid format specifier in debug logging

Description

public Settings(SessionFactoryOptions sessionFactoryOptions, String defaultCatalogName, String defaultSchemaName) {
this.sessionFactoryOptions = sessionFactoryOptions;
this.defaultCatalogName = defaultCatalogName;
this.defaultSchemaName = defaultSchemaName;
if (LOG.isDebugEnabled()) {
LOG.debugf("SessionFactory name : %s", sessionFactoryOptions.getSessionFactoryName());
.......
Line 59-> naked % raises exception
LOG.debugf("Using BatchFetchStyle : %", sessionFactoryOptions.getBatchFetchStyle().name());
LOG.debugf("Default batch fetch size: %s", sessionFactoryOptions.getDefaultBatchFetchSize());

Environment

None

Activity

Show:
Nathan Xu
July 8, 2020, 12:11 AM

The issue has been resolved at

Andrea Boriero
July 8, 2020, 8:10 AM

Assignee

Unassigned

Reporter

Tom Prodehl

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

Yes, likely

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Minor
Configure