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:
@@ -76,7 +76,7 @@ public class GlobalHotkeyService : IDisposable
|
||||
int result = XGrabKey(_display, keyCode, mask, _rootWindow, true, GrabModeAsync, GrabModeAsync);
|
||||
if (result == 0)
|
||||
{
|
||||
Console.WriteLine($"Failed to grab key {key} with modifiers {modifiers}");
|
||||
DiagnosticLog.Warn("GlobalHotkeyService", $"Failed to grab key {key} with modifiers {modifiers}");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -148,7 +148,7 @@ public class GlobalHotkeyService : IDisposable
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Console.WriteLine($"GlobalHotkeyService error: {ex.Message}");
|
||||
DiagnosticLog.Error("GlobalHotkeyService", $"Error: {ex.Message}");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user