fix: Fixes structured logging (#1043)

- [X] Fixes various bugs in logging.
This commit is contained in:
Kamron Batman 2022-06-05 01:00:22 -07:00 committed by GitHub
parent 78bb4f4bb2
commit 6e69d25e33
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
31 changed files with 96 additions and 102 deletions

View file

@ -215,11 +215,11 @@ namespace Server.Multis
{
if (value.Count > 2)
{
logger.Warning("More than 2 teleporters detected for {0:X}!", key);
logger.Warning("More than 2 teleporters detected for {ItemId:X}!", key);
}
else if (value.Count <= 1)
{
logger.Warning("1 or less teleporters detected for {0:X}!", key);
logger.Warning("1 or less teleporters detected for {ItemId:X}!", key);
continue;
}

View file

@ -251,7 +251,7 @@ namespace Server.Multis
if (ce != ZlibError.Okay)
{
logger.Warning("ZLib error: {0} (#{1})", ce, (int)ce);
logger.Warning("ZLib error: {Error} (#{ErrorCode})", ce, (int)ce);
length = 0;
size = 0;
}