Put all AYANOVA_SERVER_TEST_MODE stuff in a DEBUG build only block in prep for release

This commit is contained in:
2022-01-05 19:39:54 +00:00
parent c744cf1af0
commit 81f23420e6
3 changed files with 20 additions and 28 deletions

View File

@@ -678,11 +678,8 @@ namespace AyaNova.Core
if (ldb.Key == "none")
{
var msg = "E1020 - License key not found in database, running in unlicensed mode";
apiServerState.SetSystemLock(msg);
if (ServerBootConfig.AYANOVA_SERVER_TEST_MODE)
log.LogDebug(msg);
else
log.LogWarning(msg);
apiServerState.SetSystemLock(msg);
log.LogWarning(msg);
return;
}