Improved logging

This commit is contained in:
Thorsten Sommer 2026-01-14 09:03:32 +01:00
parent cb453dc518
commit d9bec27763
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108

View File

@ -14,7 +14,11 @@ public sealed partial class RustService
} }
catch (Exception e) catch (Exception e)
{ {
Console.WriteLine(e); if(this.logger is not null)
this.logger.LogError(e, "Error while fetching Qdrant info from Rust service.");
else
Console.WriteLine($"Error while fetching Qdrant info from Rust service: '{e}'.");
return default; return default;
} }
} }