Tidy up some debug outputs
This commit is contained in:
+4
-5
@@ -125,7 +125,6 @@ QStringList Database::getMarkedFiles()
|
||||
files << markedFiles.value("file").toString();
|
||||
}
|
||||
|
||||
qDebug() << files.size();
|
||||
return files;
|
||||
}
|
||||
|
||||
@@ -288,7 +287,7 @@ bool Database::indexFile(const QFileInfo &file)
|
||||
m_insertFileWcs.bindValue(7, crVal2);
|
||||
if(!m_insertFileWcs.exec())
|
||||
{
|
||||
qDebug() << m_insertFileWcs.lastError();
|
||||
qDebug() << "Database error" << m_insertFileWcs.lastError();
|
||||
return false;
|
||||
}
|
||||
last_id = m_insertFileWcs.lastInsertId().toLongLong();
|
||||
@@ -299,7 +298,7 @@ bool Database::indexFile(const QFileInfo &file)
|
||||
m_insertFile.bindValue(1, mtime);
|
||||
if(!m_insertFile.exec())
|
||||
{
|
||||
qDebug() << m_insertFile.lastError();
|
||||
qDebug() << "Database error" << m_insertFile.lastError();
|
||||
return false;
|
||||
}
|
||||
last_id = m_insertFile.lastInsertId().toLongLong();
|
||||
@@ -319,10 +318,10 @@ bool Database::indexFile(const QFileInfo &file)
|
||||
m_insertFitsHeader.bindValue(3, comments);
|
||||
if(!m_insertFitsHeader.execBatch())
|
||||
{
|
||||
qDebug() << m_insertFitsHeader.lastError();
|
||||
qDebug() << "Database error" << m_insertFitsHeader.lastError();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
qDebug() << filePath << last_id;
|
||||
qDebug() << "Indexed" << filePath << last_id;
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user