Only log how many sessions have been restored

Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
Christian König 2023-11-21 12:36:54 +01:00
parent 9483a09ade
commit f4e830ca17
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -296,8 +296,8 @@ bool restore_db_sessions(struct session *sessions, const uint16_t max_sessions)
i++;
}
log_info("Restored %u/%u API session%s from the database",
i, max_sessions, max_sessions == 1 ? "" : "s");
log_info("Restored %u API session%s from the database",
i, i == 1 ? "" : "s");
// Finalize statement
if(sqlite3_finalize(stmt) != SQLITE_OK)