Adds a whole bunch of SQL logging

This commit is contained in:
Twitchy 2011-07-11 20:31:25 +12:00
parent 6d1bea3577
commit b5ca97ae35
5 changed files with 20 additions and 4 deletions

View file

@ -59,6 +59,7 @@ namespace TShockAPI.DB
}
catch (SqliteExecutionException ex)
{
Log.Error(ex.ToString());
}
return null;
}
@ -83,6 +84,7 @@ namespace TShockAPI.DB
}
catch (SqliteExecutionException ex)
{
Log.Error(ex.ToString());
}
return null;
}
@ -103,6 +105,7 @@ namespace TShockAPI.DB
}
catch (SqliteExecutionException ex)
{
Log.Error(ex.ToString());
}
return false;
}
@ -121,6 +124,7 @@ namespace TShockAPI.DB
}
catch (SqliteExecutionException ex)
{
Log.Error(ex.ToString());
}
return false;
}
@ -137,6 +141,7 @@ namespace TShockAPI.DB
}
catch (SqliteExecutionException ex)
{
Log.Error(ex.ToString());
}
return false;
}

View file

@ -37,6 +37,7 @@ namespace TShockAPI.DB
}
catch (SqliteExecutionException ex)
{
Log.Error(ex.ToString());
}
}
@ -53,6 +54,7 @@ namespace TShockAPI.DB
}
catch (SqliteExecutionException ex)
{
Log.Error(ex.ToString());
}
}
@ -74,6 +76,7 @@ namespace TShockAPI.DB
}
catch (SqliteExecutionException ex)
{
Log.Error(ex.ToString());
}
return false;
}

View file

@ -241,6 +241,7 @@ namespace TShockAPI.DB
}
catch (SqliteExecutionException ex)
{
Log.Error(ex.ToString());
}
return Regions;
}

View file

@ -1,4 +1,5 @@
/*

/*
TShock, a server mod for Terraria
Copyright (C) 2011 The TShock Team
@ -79,6 +80,7 @@ namespace TShockAPI.DB
catch (SqliteExecutionException ex)
{
//Return code 0 (Add failed)
Log.Error(ex.ToString());
return 0;
}
}
@ -109,7 +111,8 @@ namespace TShockAPI.DB
}
}
catch (SqliteExecutionException ex)
{
{
Log.Error(ex.ToString());
}
return returndata;
}
@ -138,7 +141,7 @@ namespace TShockAPI.DB
}
catch (SqliteExecutionException ex)
{
Log.Error(ex.ToString());
}
return Tools.GetGroup("default");
}
@ -174,7 +177,7 @@ namespace TShockAPI.DB
}
catch (SqliteExecutionException ex)
{
Log.Error(ex.ToString());
}
return "0";
}

View file

@ -63,6 +63,7 @@ namespace TShockAPI.DB
}
catch (SqliteExecutionException ex)
{
Log.Error(ex.ToString());
}
return false;
}
@ -82,6 +83,7 @@ namespace TShockAPI.DB
}
catch (SqliteExecutionException ex)
{
Log.Error(ex.ToString());
}
return false;
}
@ -104,6 +106,7 @@ namespace TShockAPI.DB
}
catch (SqliteExecutionException ex)
{
Log.Error(ex.ToString());
}
return new Warp();
}
@ -125,6 +128,7 @@ namespace TShockAPI.DB
}
catch (SqliteExecutionException ex)
{
Log.Error(ex.ToString());
}
return Warps;
}