fix: Fixes structured logging (#1043)
- [X] Fixes various bugs in logging.
This commit is contained in:
parent
78bb4f4bb2
commit
6e69d25e33
31 changed files with 96 additions and 102 deletions
|
|
@ -22,14 +22,14 @@ namespace Server
|
|||
|
||||
if (Firewall.IsBlocked(ip))
|
||||
{
|
||||
logger.Information("Client: {0}: Firewall blocked connection attempt.", ip);
|
||||
logger.Information("Client: {IP}: Firewall blocked connection attempt.", ip);
|
||||
e.AllowConnection = false;
|
||||
return;
|
||||
}
|
||||
|
||||
if (IPLimiter.SocketBlock && !IPLimiter.Verify(ip))
|
||||
{
|
||||
logger.Warning("Client: {0}: Past IP limit threshold", ip);
|
||||
logger.Warning("Client: {IP}: Past IP limit threshold", ip);
|
||||
|
||||
using (var op = new StreamWriter("ipLimits.log", true))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue