advanced logging for special cases

This commit is contained in:
mark 2006-09-22 02:48:22 +00:00
parent 235ce238cd
commit 9f84d30c40
3 changed files with 97 additions and 85 deletions

View file

@ -567,6 +567,12 @@ namespace Server.Network {
prof.Record( length, DateTime.Now - start );
}
} else {
Console.WriteLine( "Client: {0}: null buffer send, disconnecting...", this );
using ( StreamWriter op = new StreamWriter( "null_send.log", true ) )
{
op.WriteLine( "{0} Client: {1}: null buffer send, disconnecting...", DateTime.Now, this );
op.WriteLine( new System.Diagnostics.StackTrace() );
}
Dispose();
}
}