Skip to content

Commit

Permalink
Comment out some logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Heromyth committed Dec 6, 2022
1 parent 65c702b commit f26b5b3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion source/hunt/database/Database.d
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,10 @@ class Database {
}

RowSet query(string sql) {
version (HUNT_SQL_DEBUG)
version (HUNT_SQL_DEBUG_MORE) {
info(sql);
}

SqlConnection conn = getConnection();
scope (exit) {
conn.close();
Expand Down
5 changes: 3 additions & 2 deletions source/hunt/database/Statement.d
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,9 @@ class Statement
{
string execSql = sql(_sqlConn);

version (HUNT_SQL_DEBUG)
version (HUNT_SQL_DEBUG_MORE) {
logDebug(execSql);
}

_rs = _sqlConn.query(execSql);
_lastInsertId = 0;
Expand Down Expand Up @@ -207,7 +208,7 @@ class Statement
int execute(string lastIdName)
{
string execSql = sql(_sqlConn);
version (HUNT_SQL_DEBUG) logDebug(execSql);
version (HUNT_SQL_DEBUG_MORE) logDebug(execSql);

_rs = _sqlConn.query(execSql);
_lastInsertId = 0;
Expand Down

0 comments on commit f26b5b3

Please sign in to comment.