mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-09 15:47:38 +02:00
* Stop logging every query.
This commit is contained in:
@@ -88,7 +88,6 @@ TomahawkSqlQuery::exec()
|
|||||||
showError();
|
showError();
|
||||||
|
|
||||||
int e = t.elapsed();
|
int e = t.elapsed();
|
||||||
|
|
||||||
if ( log || e >= QUERY_THRESHOLD )
|
if ( log || e >= QUERY_THRESHOLD )
|
||||||
tLog( LOGSQL ) << "TomahawkSqlQuery::exec (" << t.elapsed() << "ms ):" << lastQuery();
|
tLog( LOGSQL ) << "TomahawkSqlQuery::exec (" << t.elapsed() << "ms ):" << lastQuery();
|
||||||
|
|
||||||
|
@@ -24,7 +24,7 @@
|
|||||||
#include <QSqlDriver>
|
#include <QSqlDriver>
|
||||||
#include <QSqlQuery>
|
#include <QSqlQuery>
|
||||||
|
|
||||||
#define TOMAHAWK_QUERY_ANALYZE 1
|
//#define TOMAHAWK_QUERY_ANALYZE 1
|
||||||
|
|
||||||
class TomahawkSqlQuery : public QSqlQuery
|
class TomahawkSqlQuery : public QSqlQuery
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user