Skip to content

Commit

Permalink
Changes made per peer-review
Browse files Browse the repository at this point in the history
  • Loading branch information
sean-gilliam committed Mar 9, 2024
1 parent 1ae71dc commit 6192dd0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion code/devextra.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ void clean_mud()
if (!nSQL.StartSQLServer(riftCore.Host.c_str(),
riftCore.Db.c_str(), riftCore.User.c_str(), riftCore.Pwd.c_str()))
{
RS.Logger.Warn("clean_mud: failed to establish a database connection.");
RS.Logger.Error("clean_mud: failed to establish a database connection.");
return;
}

Expand Down
6 changes: 3 additions & 3 deletions code/sql.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ bool CSQLInterface::StartSQLServer(const char* host, const char* db, const char*

if(!mysql_real_connect(connection, host, user, pass, db, 0, nullptr, 0))
{
RS.Logger.Warn("Unable to connect to mysql database: {}\r\n", mysql_error(connection));
RS.Logger.Error("Unable to connect to mysql database: {}\r\n", mysql_error(connection));
return false;
}

Expand All @@ -54,7 +54,7 @@ int CSQLInterface::IQuery(const char *query)

if(mysql_query(connection, query))
{
RS.Logger.Warn("MYSQL IQuery Error: {} on query {}", mysql_error(connection), query);
RS.Logger.Error("MYSQL IQuery Error: {} on query {}", mysql_error(connection), query);
return 0;
}

Expand All @@ -67,7 +67,7 @@ int CSQLInterface::IQuery(const char *query)
else if(mysql_field_count(connection) == 0)
return mysql_affected_rows(connection);
else
RS.Logger.Warn("MYSQL IQuery Store Error: {} on query {}", mysql_error(connection), query);
RS.Logger.Error("MYSQL IQuery Store Error: {} on query {}", mysql_error(connection), query);

return 0;
}
Expand Down
1 change: 0 additions & 1 deletion code/update.c
Original file line number Diff line number Diff line change
Expand Up @@ -2298,7 +2298,6 @@ void affect_update(void)

wiznet("ERROR: $N had corrupt name! Name has been properly repaired. Check for other errors.", ch, nullptr, 0, 0, 0);
sprintf(buf, "Error: %s has corrupt name. Repaired.\n\r", ch->true_name);
RS.Logger.Debug(buf);
RS.Logger.Info(buf);
}

Expand Down

0 comments on commit 6192dd0

Please sign in to comment.