mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-07 14:46:33 +02:00
Remove extra liblastfm2 debug
This commit is contained in:
@@ -85,7 +85,6 @@ lastfm::NetworkAccessManager::NetworkAccessManager( QObject* parent )
|
|||||||
, m_monitor( 0 )
|
, m_monitor( 0 )
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
qDebug() << Q_FUNC_INFO << " begin";
|
|
||||||
// can't be done in above init, as applicationName() won't be set
|
// can't be done in above init, as applicationName() won't be set
|
||||||
if (lastfm::UserAgent.isEmpty())
|
if (lastfm::UserAgent.isEmpty())
|
||||||
{
|
{
|
||||||
@@ -94,8 +93,6 @@ lastfm::NetworkAccessManager::NetworkAccessManager( QObject* parent )
|
|||||||
if (version.size()) version.prepend( ' ' );
|
if (version.size()) version.prepend( ' ' );
|
||||||
lastfm::UserAgent = name + version + " (" + lastfm::platform() + ")";
|
lastfm::UserAgent = name + version + " (" + lastfm::platform() + ")";
|
||||||
}
|
}
|
||||||
|
|
||||||
qDebug() << Q_FUNC_INFO << " end, useragent is " << lastfm::UserAgent;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
6
thirdparty/liblastfm2/src/ws/ws.cpp
vendored
6
thirdparty/liblastfm2/src/ws/ws.cpp
vendored
@@ -196,21 +196,15 @@ lastfm::ws::parse( QNetworkReply* reply ) throw( ParseError )
|
|||||||
QNetworkAccessManager*
|
QNetworkAccessManager*
|
||||||
lastfm::nam()
|
lastfm::nam()
|
||||||
{
|
{
|
||||||
qDebug() << Q_FUNC_INFO << " begin";
|
|
||||||
QMutexLocker l( &namAccessMutex );
|
QMutexLocker l( &namAccessMutex );
|
||||||
QThread* thread = QThread::currentThread();
|
QThread* thread = QThread::currentThread();
|
||||||
qDebug() << Q_FUNC_INFO << " thread is " << thread;
|
|
||||||
if ( !threadNamHash.contains( thread ) )
|
if ( !threadNamHash.contains( thread ) )
|
||||||
{
|
{
|
||||||
qDebug() << Q_FUNC_INFO << " does not yet have a NAM, creating a new one";
|
|
||||||
NetworkAccessManager* newNam = new NetworkAccessManager();
|
NetworkAccessManager* newNam = new NetworkAccessManager();
|
||||||
threadNamHash[thread] = newNam;
|
threadNamHash[thread] = newNam;
|
||||||
ourNamSet.insert( thread );
|
ourNamSet.insert( thread );
|
||||||
qDebug() << Q_FUNC_INFO << " returning " << threadNamHash[thread];
|
|
||||||
return newNam;
|
return newNam;
|
||||||
}
|
}
|
||||||
Q_ASSERT( threadNamHash[thread] );
|
|
||||||
qDebug() << Q_FUNC_INFO << " found a nam, is " << threadNamHash[thread];
|
|
||||||
return threadNamHash[thread];
|
return threadNamHash[thread];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user