fix log in the initialize database function
All checks were successful
buildbot/WindowsCMakeBuilder Build finished.

This commit is contained in:
Andrei Yankovich 2022-05-23 18:03:52 +03:00
parent 7aa7ef32ff
commit fe23a941c2
2 changed files with 4 additions and 4 deletions

View File

@ -269,11 +269,11 @@ bool DataBase::upgradeDataBase() {
auto patch = patches.last();
message = message.arg(patch.versionTo);
QuasarAppUtils::Params::log(message,
QuasarAppUtils::Params::log(message.arg("(Begin)"),
QuasarAppUtils::Info);
if (!patch.action(db())) {
QuasarAppUtils::Params::log("Failed to " + message.arg("Patch finished with error!"),
QuasarAppUtils::Params::log("Failed to " + message.arg("Patch finished with error code!"),
QuasarAppUtils::Error);
return false;
}

View File

@ -51,8 +51,8 @@ bool SqlDBWriter::exec(QSqlQuery *sq, const QString& sqlFile) const {
temp = temp.remove(0, delimiterIndex + 1);
if (!result) {
QuasarAppUtils::Params::log(QString("exec database error. line:%0: %1").
arg(lineNumber).arg(sq->lastError().text()),
QuasarAppUtils::Params::log(QString("Exec database error. File: %0. Line:%1: %2").
arg(sqlFile).arg(lineNumber).arg(sq->lastError().text()),
QuasarAppUtils::Error);
f.close();
return false;