UI: Improve statistics update's error logging.

This commit is contained in:
Nodir Temirkhodjaev 2021-01-15 12:46:59 +03:00
parent e3eb491008
commit 90623e69bc

View File

@ -494,7 +494,8 @@ void StatManager::updateTrafficList(const QStmtList &insertStmtList,
SqliteStmt *stmtInsert = insertStmtList.at(i);
if (!updateTraffic(stmtInsert, inBytes, outBytes, appId)) {
logCritical() << "Update traffic error:" << m_sqliteDb->errorMessage() << Qt::endl
<< stmtInsert->expandedSql();
<< "inBytes:" << inBytes << "outBytes:" << outBytes
<< "appId:" << appId << "index:" << i;
}
}
++i;