advanced logging for special cases
This commit is contained in:
parent
235ce238cd
commit
9f84d30c40
3 changed files with 97 additions and 85 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue