diff --git a/src/Server/Helper/DatabaseHelper.cs b/src/Server/Helper/DatabaseHelper.cs index 9ca2c08..4079470 100644 --- a/src/Server/Helper/DatabaseHelper.cs +++ b/src/Server/Helper/DatabaseHelper.cs @@ -153,7 +153,8 @@ public class DatabaseHelper(ILogger logger) } 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}"); } } }