mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-16 09:13:48 +00:00
Refactored logging into a unified logging
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user