Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve connection drop logs #1277

Merged
merged 20 commits into from
May 17, 2021
Merged

Improve connection drop logs #1277

merged 20 commits into from
May 17, 2021

Conversation

Y-Sindo
Copy link
Member

@Y-Sindo Y-Sindo commented May 14, 2021

fix #1173

@@ -11,6 +11,9 @@ internal partial class ServiceConnection
private static class Log
{
// Category: ServiceConnection
private static readonly Action<ILogger, int, string, string, Exception> _closingClientConnections =
LoggerMessage.Define<int, string, string>(LogLevel.Information, new EventId(1, "ClosingClientConnections"), "Closing {clientCount} client connections for server connection {serverConnectionId} (and instanceId {fromInstanceId} when it is not null). This can be triggered by a service connection drop or app server shutdown.");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.......

@@ -11,6 +11,12 @@ internal partial class ServiceConnection
private static class Log
{
// Category: ServiceConnection
private static readonly Action<ILogger, int, string, string, Exception> _closingClientConnectionsFromInstance =
LoggerMessage.Define<int, string, string>(LogLevel.Information, new EventId(1, "ClosingClientConnectionsFromInstance"), "Closing {ClientCount} client connection(s) for server connection {ServerConnectionId} from Azure SignalR instance {InstanceId}.");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

duplicate eventId 1

@Y-Sindo Y-Sindo enabled auto-merge (squash) May 17, 2021 09:34
@Y-Sindo Y-Sindo merged commit 79e4423 into Azure:dev May 17, 2021
@Y-Sindo Y-Sindo deleted the conndrop branch May 17, 2021 10:08
This was referenced Jun 8, 2021
terencefan pushed a commit to terencefan/azure-signalr that referenced this pull request Jun 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve logs for server connection drop
3 participants