NoSteamManager: Rewrite log functions, forgot to change before.

This commit is contained in:
zaCade 2019-03-08 17:04:26 +01:00
parent 07547dfd9f
commit cbe95019d8
2 changed files with 5 additions and 5 deletions

View File

@ -205,14 +205,14 @@ public void SQL_OnDatabaseConnect(Database db, const char[] error, any data)
{
if(!db || strlen(error))
{
LogError("Error connecting to database: %s", error);
LogError("Database error: %s", error);
return;
}
g_hDatabase = db;
char sQuery[512];
Format(sQuery, sizeof(sQuery), "CREATE TABLE IF NOT EXISTS connections (`auth` varchar(32), `type` varchar(32), `address` varchar(16), PRIMARY KEY (`auth`))");
Format(sQuery, sizeof(sQuery), "CREATE TABLE IF NOT EXISTS connections (`auth` varchar(32), `address` varchar(16), PRIMARY KEY (`auth`))");
g_hDatabase.Query(SQL_OnQueryCompleted, sQuery, _, DBPrio_High);
}
@ -224,7 +224,7 @@ public void SQL_OnQueryCompleted(Database db, DBResultSet results, const char[]
{
if(!db || strlen(error))
{
LogError("Error connecting to database: %s", error);
LogError("Query error: %s", error);
return;
}

View File

@ -196,7 +196,7 @@ public void SQL_OnDatabaseConnect(Database db, const char[] error, any data)
{
if(!db || strlen(error))
{
LogError("Error connecting to database: %s", error);
LogError("Database error: %s", error);
return;
}
@ -215,7 +215,7 @@ public void SQL_OnQueryCompleted(Database db, DBResultSet results, const char[]
{
if(!db || strlen(error))
{
LogError("Error connecting to database: %s", error);
LogError("Query error: %s", error);
return;
}