Skip to content

Commit 7e56c8a

Browse files
committed
Revert changes
1 parent d6bc053 commit 7e56c8a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Flow.Launcher/App.xaml.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,8 @@ await API.StopwatchLogInfoAsync(ClassName, "Startup cost", async () =>
183183
// So set to OnExplicitShutdown to prevent the application from shutting down before main window is created
184184
Current.ShutdownMode = ShutdownMode.OnExplicitShutdown;
185185

186+
Log.SetLogLevel(_settings.LogLevel);
187+
186188
// Update dynamic resources base on settings
187189
Current.Resources["SettingWindowFont"] = new FontFamily(_settings.SettingWindowFont);
188190
Current.Resources["ContentControlThemeFontFamily"] = new FontFamily(_settings.SettingWindowFont);
@@ -195,12 +197,8 @@ await API.StopwatchLogInfoAsync(ClassName, "Startup cost", async () =>
195197
// Initialize language before portable clean up since it needs translations
196198
await _internationalization.InitializeLanguageAsync();
197199

198-
// Clean up after portability updates
199200
Ioc.Default.GetRequiredService<Portable>().PreStartCleanUpAfterPortabilityUpdate();
200201

201-
// Initialize logger after data path initialization during portable clean up to ensure correct log directory path is used
202-
Log.SetLogLevel(_settings.LogLevel);
203-
204202
API.LogInfo(ClassName, "Begin Flow Launcher startup ----------------------------------------------------");
205203
API.LogInfo(ClassName, $"Runtime info:{ErrorReporting.RuntimeInfo()}");
206204

0 commit comments

Comments
 (0)