Thanks to visit codestin.com
Credit goes to github.com

Skip to content

SessionPool logging is using wrong object string to replace #3235

@carlzogh

Description

@carlzogh

Class: com.google.cloud.spanner.SessionPool
Function: PoolMaintainer.closeIdleSessions(Instant currTime)

logger.log(Level.FINE, "Closing session %s", sess.getName());
Should instead be
logger.log(Level.FINE, "Closing session {0}", sess.getName());
to replace {0} with sess.getName(), otherwise all it's logging is Closing session %s

Metadata

Metadata

Assignees

Labels

priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions