mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-04-05 08:32:42 +02:00
* Stop logging every query.
This commit is contained in:
parent
707a8cb280
commit
6572f9820a
@ -69,7 +69,7 @@ TomahawkSqlQuery::exec()
|
||||
#endif
|
||||
if ( log )
|
||||
tLog( LOGSQL ) << "TomahawkSqlQuery::exec running in thread " << QThread::currentThread();
|
||||
|
||||
|
||||
QTime t;
|
||||
t.start();
|
||||
|
||||
@ -88,10 +88,9 @@ TomahawkSqlQuery::exec()
|
||||
showError();
|
||||
|
||||
int e = t.elapsed();
|
||||
|
||||
if ( log || e >= QUERY_THRESHOLD )
|
||||
tLog( LOGSQL ) << "TomahawkSqlQuery::exec (" << t.elapsed() << "ms ):" << lastQuery();
|
||||
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
@ -24,7 +24,7 @@
|
||||
#include <QSqlDriver>
|
||||
#include <QSqlQuery>
|
||||
|
||||
#define TOMAHAWK_QUERY_ANALYZE 1
|
||||
//#define TOMAHAWK_QUERY_ANALYZE 1
|
||||
|
||||
class TomahawkSqlQuery : public QSqlQuery
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user