Adds SQL logging from WhiteX's fork; closes #869
This commit is contained in:
parent
c215ff8e10
commit
0459dfca11
10 changed files with 743 additions and 144 deletions
|
|
@ -145,7 +145,7 @@ namespace TShockAPI
|
|||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Log.ConsoleError(e.ToString());
|
||||
TShock.Log.ConsoleError(e.ToString());
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
@ -206,7 +206,7 @@ namespace TShockAPI
|
|||
}
|
||||
catch (ObjectDisposedException e)
|
||||
{
|
||||
Log.Warn(e.ToString());
|
||||
TShock.Log.Warn(e.ToString());
|
||||
}
|
||||
catch (SocketException e)
|
||||
{
|
||||
|
|
@ -216,7 +216,7 @@ namespace TShockAPI
|
|||
case 10053:
|
||||
break;
|
||||
default:
|
||||
Log.Warn(e.ToString());
|
||||
TShock.Log.Warn(e.ToString());
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
@ -230,12 +230,12 @@ namespace TShockAPI
|
|||
case SocketError.ConnectionReset:
|
||||
break;
|
||||
default:
|
||||
Log.Warn(e.ToString());
|
||||
TShock.Log.Warn(e.ToString());
|
||||
break;
|
||||
}
|
||||
}
|
||||
else
|
||||
Log.Warn(e.ToString());
|
||||
TShock.Log.Warn(e.ToString());
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue