Cosmetic change: The Reader thread can be named something more specific #739
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Please see issue #738 .
After this change, the reader thread name can be matched to the thread that has started it. A simple grep will help if I need the details of one specific connection
2021-11-04 16:56:10.475 TRACE transport.TransportImpl(469) [SshTest 10.0.0.1 reader]: Received packet NEWKEYS
2021-11-04 16:56:10.491 DEBUG transport.KeyExchanger(402) [SshTest 10.0.0.1 reader]: Received SSH_MSG_NEWKEYS
2021-11-04 16:56:10.491 DEBUG concurrent.Promise(78) [SshTest 10.0.0.1 reader]: Setting <> to
null
2021-11-04 16:56:10.491 DEBUG concurrent.Promise(78) [SshTest 10.0.0.1 reader]: Setting <> to
SOME
2021-11-04 16:56:10.491 DEBUG sshj.SSHClient(807) [SshTest 10.0.0.1]: Key exchange took 0.219 seconds
2021-11-04 16:56:10.491 INFO sshtest.SshTest(120) [SshTest 10.0.0.1]: Trying AuthNone
2021-11-04 16:56:10.491 DEBUG concurrent.Promise(78) [SshTest 10.0.0.1]: Setting <> to
null
2021-11-04 16:56:10.491 DEBUG transport.TransportImpl(328) [SshTest 10.0.0.1]: Sending SSH_MSG_SERVICE_REQUEST for ssh-userauth
2021-11-04 16:56:10.491 TRACE transport.Encoder(66) [SshTest 10.0.0.1]: Encoding packet #4: 05 00 00 00 0c 73 73 68 2d 75 73 65 72 61 75 74 68
2021-11-04 16:56:10.491 DEBUG concurrent.Promise(164) [SshTest 10.0.0.1]: Awaiting <>