Refactored logging into a unified logging

This commit is contained in:
tsommer committed 2024-08-25 21:55:34 +02:00
1 parent 200b87f47a
commit 82f7329a39
24 files changed
+416 -224

No files matched your search

@@ -24,6 +24,9 @@ public partial class Workspaces : ComponentBase
[Inject]
private ThreadSafeRandom RNG { get; init; } = null!;
[Inject]
private ILogger<Workspaces> Logger { get; init; } = null!;
[Parameter]
public ChatThread? CurrentChatThread { get; set; }
@@ -309,7 +312,7 @@ public partial class Workspaces : ComponentBase
}
catch (Exception e)
{
Console.WriteLine(e);
this.Logger.LogError($"Failed to load chat from '{chatPath}': {e.Message}");
}
return null;