Skip to content

Commit

Permalink
Changed the console message for when database commands are executed
Browse files Browse the repository at this point in the history
  • Loading branch information
MythicalCuddles committed Oct 18, 2019
1 parent a275742 commit d0a9e4c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion DiscordBot/Database/DatabaseActivity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ internal static int ExecuteNonQueryCommand(string query, List<(string name, stri
int rows = cmd.ExecuteNonQuery();
conn.CloseAsync();

new LogMessage(LogSeverity.Debug, "Database Command","Command: " + cmd.CommandText + " | Rows affected: " + rows).PrintToConsole().GetAwaiter();
new LogMessage(LogSeverity.Debug, "Database Command",cmd.CommandText).PrintToConsole().GetAwaiter();
new LogMessage(LogSeverity.Debug, "Database Response", "Rows Updated: " + rows).PrintToConsole().GetAwaiter();

return rows;
}
Expand Down

0 comments on commit d0a9e4c

Please sign in to comment.