don't trace innocuous network exceptions unless debug flagged

This commit is contained in:
mark@runuo.com 2013-09-06 06:55:31 +00:00
parent 9289f2ce86
commit b94e3ea2b6

View file

@ -1040,6 +1040,9 @@ namespace Server.Network {
}
public static void TraceException( Exception ex ) {
if (!Core.Debug)
return;
try {
using ( StreamWriter op = new StreamWriter( "network-errors.log", true ) ) {
op.WriteLine( "# {0}", DateTime.Now );