don't trace innocuous network exceptions unless debug flagged
This commit is contained in:
parent
9289f2ce86
commit
b94e3ea2b6
1 changed files with 3 additions and 0 deletions
|
|
@ -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 );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue