-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into migrate-dotnet8
- Loading branch information
Showing
4 changed files
with
85 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
// SPDX-FileCopyrightText: 2023 Demerzel Solutions Limited | ||
// SPDX-License-Identifier: MIT | ||
|
||
using System.Net; | ||
using Microsoft.Extensions.Logging; | ||
using Nethermind.Libp2p.Core; | ||
|
||
namespace Nethermind.Libp2p.Protocols.Quic; | ||
|
||
internal static partial class LogMessages | ||
{ | ||
private const int EventId = 200_001; | ||
|
||
[LoggerMessage( | ||
EventId = EventId + 1, | ||
EventName = nameof(ReadyToHandleConnections), | ||
Message = "Ready to handle connections", | ||
Level = LogLevel.Debug)] | ||
internal static partial void ReadyToHandleConnections( | ||
this ILogger logger); | ||
|
||
[LoggerMessage( | ||
EventId = EventId + 2, | ||
EventName = nameof(Connected), | ||
Message = "Connected {localEndPoint} --> {remoteEndPoint}", | ||
Level = LogLevel.Debug)] | ||
internal static partial void Connected( | ||
this ILogger logger, | ||
IPEndPoint localEndPoint, | ||
IPEndPoint remoteEndPoint); | ||
|
||
[LoggerMessage( | ||
EventId = EventId + 3, | ||
EventName = nameof(SocketException), | ||
Message = "Disconnected due to a socket exception: {errorMessage}", | ||
Level = LogLevel.Information)] | ||
internal static partial void SocketException( | ||
this ILogger logger, | ||
Exception exception, | ||
string errorMessage); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters