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
|
|
@ -199,7 +199,7 @@ namespace Server
|
|||
|
||||
// TODO: Handle timers > 17yrs
|
||||
#if DEBUG_TIMERS
|
||||
logger.Error($"Timer is more than max duration. ({originalDelay})");
|
||||
logger.Error("Timer is more than max duration. ({Duration})", originalDelay);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
@ -224,12 +224,12 @@ namespace Server
|
|||
while (t != null)
|
||||
{
|
||||
var name = t.ToString();
|
||||
|
||||
|
||||
hash.TryGetValue(name, out var count);
|
||||
hash[name] = count + 1;
|
||||
|
||||
|
||||
total++;
|
||||
|
||||
|
||||
t = t?._nextTimer;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue