From 6ee876392cb3dca0a51e02cfc64b82697dfe7ca3 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Fri, 16 May 2014 23:05:30 -0700 Subject: [PATCH] Updater log filename changed and restart drone with --nobrowser --- src/NzbDrone.Common/Instrumentation/LogTargets.cs | 2 +- src/NzbDrone.Update/UpdateEngine/StartNzbDrone.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NzbDrone.Common/Instrumentation/LogTargets.cs b/src/NzbDrone.Common/Instrumentation/LogTargets.cs index 67e8f69d3..399eca7a7 100644 --- a/src/NzbDrone.Common/Instrumentation/LogTargets.cs +++ b/src/NzbDrone.Common/Instrumentation/LogTargets.cs @@ -104,7 +104,7 @@ namespace NzbDrone.Common.Instrumentation var fileTarget = new FileTarget(); fileTarget.Name = "updateFileLogger"; - fileTarget.FileName = Path.Combine(appFolderInfo.GetUpdateLogFolder(), DateTime.Now.ToString("yy.MM.d-HH.mm") + ".txt"); + fileTarget.FileName = Path.Combine(appFolderInfo.GetUpdateLogFolder(), DateTime.Now.ToString("yyyy.MM.dd-HH.mm") + ".txt"); fileTarget.AutoFlush = true; fileTarget.KeepFileOpen = false; fileTarget.ConcurrentWrites = false; diff --git a/src/NzbDrone.Update/UpdateEngine/StartNzbDrone.cs b/src/NzbDrone.Update/UpdateEngine/StartNzbDrone.cs index 63079033a..94ddc8877 100644 --- a/src/NzbDrone.Update/UpdateEngine/StartNzbDrone.cs +++ b/src/NzbDrone.Update/UpdateEngine/StartNzbDrone.cs @@ -73,7 +73,7 @@ namespace NzbDrone.Update.UpdateEngine _logger.Info("Starting {0}", fileName); var path = Path.Combine(installationFolder, fileName); - _processProvider.SpawnNewProcess(path, StartupContext.NO_BROWSER); + _processProvider.SpawnNewProcess(path, "--" + StartupContext.NO_BROWSER); } } } \ No newline at end of file