fix: better logging behaviour
This commit is contained in:
parent
3e6d0333b7
commit
398019afe8
36 changed files with 256 additions and 188 deletions
src
|
@ -33,11 +33,11 @@ database_migrate()
|
|||
switch(version_num)
|
||||
{
|
||||
case 0:
|
||||
LOG_INFO("migrating LEVEL 0\n");
|
||||
LOGGER_INFO("migrating LEVEL 0\n");
|
||||
rc = sqlite3_exec(global_database, (const char *)sql_migration_0_sql, NULL, NULL, &err_msg);
|
||||
if(rc != 0)
|
||||
{
|
||||
LOG_FATAL("couldn't migrate LEVEL 0 (%s)\n", err_msg);
|
||||
LOGGER_CRIT("couldn't migrate LEVEL 0 (%s)\n", err_msg);
|
||||
break;
|
||||
}
|
||||
new_version_num = 1;
|
||||
|
@ -58,7 +58,7 @@ database_migrate()
|
|||
rc = sqlite3_step(stmt);
|
||||
if (rc != SQLITE_DONE)
|
||||
{
|
||||
LOG_FATAL("couldn't write new schema version\n");
|
||||
LOGGER_CRIT("couldn't write new schema version\n");
|
||||
}
|
||||
|
||||
sqlite3_finalize(stmt);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue