Influxdb: Disable debug print if database is disabled or not initialized

This commit is contained in:
Simon Stürz 2024-10-15 14:47:35 +02:00
parent 36adad329f
commit 09b378e251

View File

@ -153,7 +153,9 @@ void LogEngineInfluxDB::unregisterLogSource(const QString &name)
}
QString queryString = QString("DROP MEASUREMENT \"%1\"").arg(name);
qCInfo(dcLogEngine()) << "Removing log entries:" << queryString;
if (m_initStatus == InitStatusOK)
qCDebug(dcLogEngine()) << "Removing log entries:" << queryString;
QueryJob *job = query(queryString);
connect(job, &QueryJob::finished, this, [name](bool success){
if (success) {