feat: add path depending on OS
Some checks failed
.NET Test Pipeline / build-and-test (pull_request) Failing after 1m56s

This commit is contained in:
Polianin Nikita 2024-06-01 07:27:18 +03:00
parent 32621515db
commit ded577f40a

View File

@ -213,8 +213,10 @@ public class SetupController(ISetupToken setupToken, IMaintenanceModeNotConfigur
true => new LogSettings true => new LogSettings
{ {
EnableLogToFile = true, EnableLogToFile = true,
LogFileName = "logging-", LogFileName = "log-",
LogFilePath = "logs" LogFilePath = OperatingSystem.IsWindows() || PathBuilder.IsDefaultPath ?
PathBuilder.Combine("logs") :
"/var/log/mirea"
}, },
false => new LogSettings false => new LogSettings
{ {