From 90623e69bc153e6ef6f9c9237f8b479cae0118f4 Mon Sep 17 00:00:00 2001 From: Nodir Temirkhodjaev Date: Fri, 15 Jan 2021 12:46:59 +0300 Subject: [PATCH] UI: Improve statistics update's error logging. --- src/ui/stat/statmanager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ui/stat/statmanager.cpp b/src/ui/stat/statmanager.cpp index 3d803bb8..e65071b0 100644 --- a/src/ui/stat/statmanager.cpp +++ b/src/ui/stat/statmanager.cpp @@ -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;