Improved logging in DatabaseHelper

This commit is contained in:
2025-12-13 17:15:32 +01:00
parent 4f3354c038
commit 53a8d073bd

View File

@@ -153,7 +153,8 @@ public class DatabaseHelper(ILogger<DatabaseHelper> logger)
} }
else else
{ {
throw new Exception($"Unable to determine whether an entity named {name} exists for {searchdomain}"); // TODO implement logging here; add logger via method injection _logger.LogError("Unable to determine whether an entity named {name} exists for {searchdomain}", [name, searchdomain]);
throw new Exception($"Unable to determine whether an entity named {name} exists for {searchdomain}");
} }
} }
} }