refactor: replace Console.WriteLine with DiagnosticLog service
All checks were successful
CI / Build (Linux) (push) Successful in 21s
All checks were successful
CI / Build (Linux) (push) Successful in 21s
Replace 495+ Console.WriteLine debug statements across handlers, dispatching, services, views, and window components with centralized DiagnosticLog service for proper logging infrastructure. Add new DiagnosticLog.cs service with Debug/Error methods to eliminate debug logging pollution in production code.
This commit is contained in:
@@ -392,14 +392,14 @@ public class SystemThemeService
|
||||
|
||||
if (oldTheme != CurrentTheme)
|
||||
{
|
||||
Console.WriteLine($"[SystemThemeService] Theme change detected via polling: {oldTheme} -> {CurrentTheme}");
|
||||
DiagnosticLog.Debug("SystemThemeService", $"Theme change detected via polling: {oldTheme} -> {CurrentTheme}");
|
||||
UpdateColors();
|
||||
ThemeChanged?.Invoke(this, new ThemeChangedEventArgs(CurrentTheme));
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Console.WriteLine($"[SystemThemeService] Error in poll timer: {ex.Message}");
|
||||
DiagnosticLog.Error("SystemThemeService", $"Error in poll timer: {ex.Message}");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user