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:
@@ -91,7 +91,7 @@ public class PortalFilePickerService : IFilePicker
|
||||
else
|
||||
{
|
||||
// No file picker available
|
||||
Console.WriteLine("[FilePickerService] No file picker available (install xdg-desktop-portal, zenity, or kdialog)");
|
||||
DiagnosticLog.Warn("PortalFilePickerService", "No file picker available (install xdg-desktop-portal, zenity, or kdialog)");
|
||||
return Enumerable.Empty<FileResult>();
|
||||
}
|
||||
}
|
||||
@@ -146,7 +146,7 @@ public class PortalFilePickerService : IFilePicker
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Console.WriteLine($"[FilePickerService] Portal error: {ex.Message}");
|
||||
DiagnosticLog.Error("PortalFilePickerService", $"Portal error: {ex.Message}");
|
||||
// Fall back to zenity/kdialog
|
||||
if (_fallbackTool != null)
|
||||
{
|
||||
@@ -358,7 +358,7 @@ public class PortalFilePickerService : IFilePicker
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Console.WriteLine($"[FilePickerService] Command error: {ex.Message}");
|
||||
DiagnosticLog.Error("PortalFilePickerService", $"Command error: {ex.Message}");
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user