Adds a whole bunch of SQL logging
This commit is contained in:
parent
6d1bea3577
commit
b5ca97ae35
5 changed files with 20 additions and 4 deletions
|
|
@ -59,6 +59,7 @@ namespace TShockAPI.DB
|
||||||
}
|
}
|
||||||
catch (SqliteExecutionException ex)
|
catch (SqliteExecutionException ex)
|
||||||
{
|
{
|
||||||
|
Log.Error(ex.ToString());
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
@ -83,6 +84,7 @@ namespace TShockAPI.DB
|
||||||
}
|
}
|
||||||
catch (SqliteExecutionException ex)
|
catch (SqliteExecutionException ex)
|
||||||
{
|
{
|
||||||
|
Log.Error(ex.ToString());
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
@ -103,6 +105,7 @@ namespace TShockAPI.DB
|
||||||
}
|
}
|
||||||
catch (SqliteExecutionException ex)
|
catch (SqliteExecutionException ex)
|
||||||
{
|
{
|
||||||
|
Log.Error(ex.ToString());
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
@ -121,6 +124,7 @@ namespace TShockAPI.DB
|
||||||
}
|
}
|
||||||
catch (SqliteExecutionException ex)
|
catch (SqliteExecutionException ex)
|
||||||
{
|
{
|
||||||
|
Log.Error(ex.ToString());
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
@ -137,6 +141,7 @@ namespace TShockAPI.DB
|
||||||
}
|
}
|
||||||
catch (SqliteExecutionException ex)
|
catch (SqliteExecutionException ex)
|
||||||
{
|
{
|
||||||
|
Log.Error(ex.ToString());
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -37,6 +37,7 @@ namespace TShockAPI.DB
|
||||||
}
|
}
|
||||||
catch (SqliteExecutionException ex)
|
catch (SqliteExecutionException ex)
|
||||||
{
|
{
|
||||||
|
Log.Error(ex.ToString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -53,6 +54,7 @@ namespace TShockAPI.DB
|
||||||
}
|
}
|
||||||
catch (SqliteExecutionException ex)
|
catch (SqliteExecutionException ex)
|
||||||
{
|
{
|
||||||
|
Log.Error(ex.ToString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -74,6 +76,7 @@ namespace TShockAPI.DB
|
||||||
}
|
}
|
||||||
catch (SqliteExecutionException ex)
|
catch (SqliteExecutionException ex)
|
||||||
{
|
{
|
||||||
|
Log.Error(ex.ToString());
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -241,6 +241,7 @@ namespace TShockAPI.DB
|
||||||
}
|
}
|
||||||
catch (SqliteExecutionException ex)
|
catch (SqliteExecutionException ex)
|
||||||
{
|
{
|
||||||
|
Log.Error(ex.ToString());
|
||||||
}
|
}
|
||||||
return Regions;
|
return Regions;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
/*
|
|
||||||
|
/*
|
||||||
TShock, a server mod for Terraria
|
TShock, a server mod for Terraria
|
||||||
Copyright (C) 2011 The TShock Team
|
Copyright (C) 2011 The TShock Team
|
||||||
|
|
||||||
|
|
@ -79,6 +80,7 @@ namespace TShockAPI.DB
|
||||||
catch (SqliteExecutionException ex)
|
catch (SqliteExecutionException ex)
|
||||||
{
|
{
|
||||||
//Return code 0 (Add failed)
|
//Return code 0 (Add failed)
|
||||||
|
Log.Error(ex.ToString());
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -110,6 +112,7 @@ namespace TShockAPI.DB
|
||||||
}
|
}
|
||||||
catch (SqliteExecutionException ex)
|
catch (SqliteExecutionException ex)
|
||||||
{
|
{
|
||||||
|
Log.Error(ex.ToString());
|
||||||
}
|
}
|
||||||
return returndata;
|
return returndata;
|
||||||
}
|
}
|
||||||
|
|
@ -138,7 +141,7 @@ namespace TShockAPI.DB
|
||||||
}
|
}
|
||||||
catch (SqliteExecutionException ex)
|
catch (SqliteExecutionException ex)
|
||||||
{
|
{
|
||||||
|
Log.Error(ex.ToString());
|
||||||
}
|
}
|
||||||
return Tools.GetGroup("default");
|
return Tools.GetGroup("default");
|
||||||
}
|
}
|
||||||
|
|
@ -174,7 +177,7 @@ namespace TShockAPI.DB
|
||||||
}
|
}
|
||||||
catch (SqliteExecutionException ex)
|
catch (SqliteExecutionException ex)
|
||||||
{
|
{
|
||||||
|
Log.Error(ex.ToString());
|
||||||
}
|
}
|
||||||
return "0";
|
return "0";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -63,6 +63,7 @@ namespace TShockAPI.DB
|
||||||
}
|
}
|
||||||
catch (SqliteExecutionException ex)
|
catch (SqliteExecutionException ex)
|
||||||
{
|
{
|
||||||
|
Log.Error(ex.ToString());
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
@ -82,6 +83,7 @@ namespace TShockAPI.DB
|
||||||
}
|
}
|
||||||
catch (SqliteExecutionException ex)
|
catch (SqliteExecutionException ex)
|
||||||
{
|
{
|
||||||
|
Log.Error(ex.ToString());
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
@ -104,6 +106,7 @@ namespace TShockAPI.DB
|
||||||
}
|
}
|
||||||
catch (SqliteExecutionException ex)
|
catch (SqliteExecutionException ex)
|
||||||
{
|
{
|
||||||
|
Log.Error(ex.ToString());
|
||||||
}
|
}
|
||||||
return new Warp();
|
return new Warp();
|
||||||
}
|
}
|
||||||
|
|
@ -125,6 +128,7 @@ namespace TShockAPI.DB
|
||||||
}
|
}
|
||||||
catch (SqliteExecutionException ex)
|
catch (SqliteExecutionException ex)
|
||||||
{
|
{
|
||||||
|
Log.Error(ex.ToString());
|
||||||
}
|
}
|
||||||
return Warps;
|
return Warps;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue