Fix wrong filename used when log.enabled is set (#5541)

This commit is contained in:
SpaceManiac
2024-11-28 10:46:53 -08:00
committed by GitHub
parent af4d53fb54
commit 8563466011

View File

@@ -223,10 +223,10 @@ namespace Robust.Server
if (!Path.IsPathRooted(fullPath))
{
logPath = PathHelpers.ExecutableRelativeFile(fullPath);
fullPath = PathHelpers.ExecutableRelativeFile(fullPath);
}
logHandler = new FileLogHandler(logPath);
logHandler = new FileLogHandler(fullPath);
}
_log.RootSawmill.Level = _config.GetCVar(CVars.LogLevel);