1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-05 13:47:26 +02:00

* Disable a bit of debug.

This commit is contained in:
Christian Muehlhaeuser
2012-07-06 04:38:40 +02:00
parent 1a1106012b
commit 7030d43e32

View File

@@ -187,8 +187,8 @@ ACLRegistryImpl::queueNextJob()
QMetaObject::invokeMethod( this, "queueNextJob", Qt::QueuedConnection ); QMetaObject::invokeMethod( this, "queueNextJob", Qt::QueuedConnection );
return; return;
} }
tLog() << Q_FUNC_INFO << "jobCount = " << m_jobCount; tLog() << Q_FUNC_INFO << "jobCount =" << m_jobCount;
tLog() << Q_FUNC_INFO << "jobQueue size = " << m_jobQueue.length(); tLog() << Q_FUNC_INFO << "jobQueue size =" << m_jobQueue.length();
if ( m_jobCount != 0 ) if ( m_jobCount != 0 )
return; return;
@@ -202,14 +202,14 @@ ACLRegistryImpl::queueNextJob()
ACLRegistry::ACL acl = isAuthorizedUser( dbid, job->username(), ACLRegistry::NotFound, true ); ACLRegistry::ACL acl = isAuthorizedUser( dbid, job->username(), ACLRegistry::NotFound, true );
if ( acl != ACLRegistry::NotFound ) if ( acl != ACLRegistry::NotFound )
{ {
tLog() << Q_FUNC_INFO << "Found existing acl entry for = " << user.knownAccountIds.first(); tLog() << Q_FUNC_INFO << "Found existing acl entry for =" << user.knownAccountIds.first();
found = true; found = true;
break; break;
} }
} }
if ( found ) if ( found )
{ {
tLog() << Q_FUNC_INFO << "deleting job, already have ACL for " << user.knownAccountIds.first(); tLog() << Q_FUNC_INFO << "deleting job, already have ACL for" << user.knownAccountIds.first();
delete job; delete job;
QTimer::singleShot( 0, this, SLOT( queueNextJob() ) ); QTimer::singleShot( 0, this, SLOT( queueNextJob() ) );
return; return;
@@ -225,6 +225,7 @@ ACLRegistryImpl::queueNextJob()
} }
#endif #endif
void void
ACLRegistryImpl::wipeEntries() ACLRegistryImpl::wipeEntries()
{ {
@@ -232,6 +233,7 @@ ACLRegistryImpl::wipeEntries()
save(); save();
} }
void void
ACLRegistryImpl::load() ACLRegistryImpl::load()
{ {
@@ -244,7 +246,6 @@ ACLRegistryImpl::load()
tLog() << Q_FUNC_INFO << "entry is invalid"; tLog() << Q_FUNC_INFO << "entry is invalid";
continue; continue;
} }
tLog() << Q_FUNC_INFO << "loading entry";
ACLRegistry::User entryUser = entry.value< ACLRegistry::User >(); ACLRegistry::User entryUser = entry.value< ACLRegistry::User >();
if ( entryUser.knownAccountIds.empty() || entryUser.knownDbids.empty() ) if ( entryUser.knownAccountIds.empty() || entryUser.knownDbids.empty() )
{ {
@@ -263,7 +264,7 @@ ACLRegistryImpl::save()
QVariantList entryList; QVariantList entryList;
foreach ( ACLRegistry::User user, m_cache ) foreach ( ACLRegistry::User user, m_cache )
{ {
tLog() << Q_FUNC_INFO << "user is " << user.uuid << " with known name " << user.knownAccountIds.first(); tLog() << Q_FUNC_INFO << "user is" << user.uuid << "with known name" << user.knownAccountIds.first();
QVariant val = QVariant::fromValue< ACLRegistry::User >( user ); QVariant val = QVariant::fromValue< ACLRegistry::User >( user );
if ( val.isValid() ) if ( val.isValid() )
entryList.append( val ); entryList.append( val );