LocalSession.toString should not log an error

Description

When an instance of LocalSession is added to a log line, its toString method is used. Some implementations try to use the connection field when composing the String representation.

When a connection is null, the getConnection method in these implementation logs an Error. A reason for the connection to be null can be stream management: when the session is detached, it won’t have a connection.

The act of creating a log line should not itself generate log lines, and certainly not errors.

Environment

None

Activity

Show:
Fixed

Details

Assignee

Reporter

Fix versions

Priority

Created March 30, 2022 at 9:31 AM
Updated June 29, 2022 at 4:56 PM
Resolved June 29, 2022 at 4:56 PM