[CONJ-623] Increase connection logging when Primary node connection fails Created: 2018-07-02  Updated: 2019-02-08  Resolved: 2018-07-06

Status: Closed
Project: MariaDB Connector/J
Component/s: Other
Affects Version/s: 2.2.5, 1.7.4
Fix Version/s: 2.2.6, 1.8.0

Type: Task Priority: Minor
Reporter: Federico Gaule Assignee: Diego Dupin
Resolution: Fixed Votes: 0
Labels: None


 Description   

In order to provide more information to link a connection from an application to a database connection (for example via TCP dump), add local_port as part of the log.
In addition, add connection timeout to provide more information .

Before

SQL Primary node [{}, conn={}] connection fail. Reason : {}

After

SQL Primary node [{}, conn={}, local_port={}, timeout={}] connection fail. Reason : {}

Pull request: https://github.com/MariaDB/mariadb-connector-j/pull/127



 Comments   
Comment by Diego Dupin [ 2018-07-06 ]

tested and merged

Generated at Thu Feb 08 03:17:06 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.