mirror of
https://github.com/apache/activemq-artemis.git
synced 2025-03-04 08:19:56 +00:00
ARTEMIS-3035 Log.info on connection success for AMQP Broker Connection
This commit is contained in:
parent
3d32f5ce98
commit
57c9dc623c
@ -233,6 +233,7 @@ public class AMQPBrokerConnection implements ClientConnectionLifeCycleListener,
|
||||
return;
|
||||
}
|
||||
|
||||
int currentRetryCounter = retryCounter;
|
||||
reconnectFuture = null;
|
||||
retryCounter = 0;
|
||||
|
||||
@ -284,6 +285,8 @@ public class AMQPBrokerConnection implements ClientConnectionLifeCycleListener,
|
||||
|
||||
bridgeManager.connected(connection, this);
|
||||
|
||||
ActiveMQAMQPProtocolLogger.LOGGER.successReconnect(brokerConnectConfiguration.getName(), host + ":" + port, currentRetryCounter);
|
||||
|
||||
connecting = false;
|
||||
} catch (Throwable e) {
|
||||
error(e);
|
||||
|
@ -60,4 +60,10 @@ public interface ActiveMQAMQPProtocolLogger extends BasicLogger {
|
||||
"\nRetrying Server AMQP Connection {0} on {1} retry {2} of {3}" +
|
||||
"\n*******************************************************************************************************************************\n", format = Message.Format.MESSAGE_FORMAT)
|
||||
void retryConnection(String name, String hostAndPort, int currentRetry, int maxRetry);
|
||||
|
||||
@LogMessage(level = Logger.Level.INFO)
|
||||
@Message(id = 111003, value = "\n*******************************************************************************************************************************" +
|
||||
"\nSuccess on Server AMQP Connection {0} on {1} after {2} retries" +
|
||||
"\n*******************************************************************************************************************************\n", format = Message.Format.MESSAGE_FORMAT)
|
||||
void successReconnect(String name, String hostAndPort, int currentRetry);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user