mirror of
https://github.com/QuasarApp/Heart.git
synced 2025-04-28 02:34:41 +00:00
fix log in the initialize database function
All checks were successful
buildbot/WindowsCMakeBuilder Build finished.
All checks were successful
buildbot/WindowsCMakeBuilder Build finished.
This commit is contained in:
parent
7aa7ef32ff
commit
fe23a941c2
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user