fix: Fixes socket disconnect on block. Fixes debug logging (#1031)

This commit is contained in:
Kamron Batman 2022-05-21 20:24:46 -07:00 committed by GitHub
parent 9bbcb4b274
commit ef883b2872
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 30 additions and 42 deletions

View file

@ -70,9 +70,7 @@ namespace Server
}
catch (Exception ex)
{
#if DEBUG
Console.WriteLine(ex);
#endif
logger.Debug(ex, "Failed to load map definition {MapDefName} ({MapDefId})", def.Name, def.Id);
failures.Add($"\tInvalid map definition {def.Name} ({def.Id})");
}
}