Skip to content

Commit

Permalink
fix: log message typo
Browse files Browse the repository at this point in the history
  • Loading branch information
HMBSbige committed Aug 13, 2021
1 parent 1c57427 commit 3c76145
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion Shadowsocks.Protocol/ListenServices/UdpListenService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public async ValueTask StartAsync()
//TODO .NET6.0
var message = await UdpListener.ReceiveAsync();
#if DEBUG
_logger.LogDebug(@"{0}: {1} bytes {2} => {2}", LoggerHeader, message.Buffer.Length, message.RemoteEndPoint, UdpListener.Client.LocalEndPoint);
_logger.LogDebug(@"{0}: {1} bytes {2} => {3}", LoggerHeader, message.Buffer.Length, message.RemoteEndPoint, UdpListener.Client.LocalEndPoint);
#endif
HandleAsync(message, _cts.Token).Forget();
}
Expand Down
8 changes: 0 additions & 8 deletions TestConsoleApp/TestServersController.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using Microsoft.Extensions.Logging;
using Shadowsocks.Crypto;
using Shadowsocks.Protocol.Models;
using Shadowsocks.Protocol.ServersControllers;
Expand All @@ -12,13 +11,6 @@ namespace TestConsoleApp
{
public class TestServersController : IServersController
{
private readonly ILogger _logger;

public TestServersController(ILogger<TestServersController> logger)
{
_logger = logger;
}

public async ValueTask<IPipeClient> GetServerAsync(string target)
{
var info = new ShadowsocksServerInfo
Expand Down

0 comments on commit 3c76145

Please sign in to comment.