AxonIQ / console-framework-client

Client for Axon Framework to connect to AxonIQ Console
https://console.axoniq.io/
Apache License 2.0
0 stars 0 forks source link

Reduce logging to the minimum required for operation #76

Closed CodeDrivenMitch closed 3 months ago

CodeDrivenMitch commented 3 months ago

The rest of the log lines are reduced to debug, so that users can debug their connection if needed. For normal operation, this is not needed.

From now on, we will log:

That's it. We don't want to spam the logs of the users when we deploy. The log during deployments is thus reduced to:

Connection to AxonIQ Console set up successfully! Settings: ClientSettingsV2(heartbeatInterval=10000, hear...
This application has lost it's connection to AxonIQ Console. Reconnection will be automatically attempted.
Connection to AxonIQ Console set up successfully! Settings: ClientSettingsV2(heartbeatInterval=10000, hear...

When we are offline, it will be similar to:

Connection to AxonIQ Console set up successfully! Settings: ClientSettingsV2(heartbeatInterval=10000, heartbeatTimeout=30000, processorReportInterval=2000, handlerReportInte
This application has lost it's connection to AxonIQ Console. Reconnection will be automatically attempted.
Failed to connect to AxonIQ Console. Error: io.netty.channel.AbstractChannel$AnnotatedConnectException: finishConnect(..) failed: Connection refused: localhost/127.0.0.1:700
sonarcloud[bot] commented 3 months ago

Quality Gate Failed Quality Gate failed

Failed conditions
9.3% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud