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
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue