Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New logging style #1141

Merged
merged 10 commits into from
May 28, 2021
155 changes: 67 additions & 88 deletions src/database/common.c

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions src/database/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ extern bool DBdeleteoldqueries;
int ret;\
if((ret = dbquery(db, __VA_ARGS__)) != SQLITE_OK) {\
if(ret == SQLITE_BUSY)\
logg("WARNING: Database busy in %s()!", __FUNCTION__);\
log_warn("Database busy in %s()!", __FUNCTION__);\
else\
logg("ERROR: %s() failed!", __FUNCTION__);\
log_err("%s() failed!", __FUNCTION__);\
return false;\
}\
}
Expand All @@ -69,9 +69,9 @@ extern bool DBdeleteoldqueries;
int ret;\
if((ret = dbquery(db, __VA_ARGS__)) != SQLITE_OK) {\
if(ret == SQLITE_BUSY)\
logg("WARNING: Database busy in %s()!", __FUNCTION__);\
log_warn("Database busy in %s()!", __FUNCTION__);\
else\
logg("ERROR: %s() failed!", __FUNCTION__);\
log_err("%s() failed!", __FUNCTION__);\
return;\
}\
}
Expand Down
Loading