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
|
|
@ -54,13 +54,14 @@ public static class UOClient
|
|||
{
|
||||
logger.Information(
|
||||
CuoSettings?.ClientVersion == ServerClientVersion
|
||||
? $"Automatically detected client version {ServerClientVersion} from CUO settings."
|
||||
: $"Automatically detected client version {ServerClientVersion}"
|
||||
? "Automatically detected client version {ServerClientVersion} from CUO settings."
|
||||
: "Automatically detected client version {ServerClientVersion}",
|
||||
ServerClientVersion
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
logger.Information($"Manually configured to use client version {ServerClientVersion}");
|
||||
logger.Information("Manually configured to use client version {ServerClientVersion}", ServerClientVersion);
|
||||
}
|
||||
|
||||
private static ClientVersion DetectCUOClient()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue