mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-01-19 15:37:01 +01:00
* Disable a bit of debug.
This commit is contained in:
parent
1a1106012b
commit
7030d43e32
@ -83,7 +83,7 @@ ACLRegistryImpl::isAuthorizedUser( const QString& dbid, const QString &username,
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
bool found = false;
|
||||
QMutableListIterator< ACLRegistry::User > i( m_cache );
|
||||
while ( i.hasNext() )
|
||||
@ -187,8 +187,8 @@ ACLRegistryImpl::queueNextJob()
|
||||
QMetaObject::invokeMethod( this, "queueNextJob", Qt::QueuedConnection );
|
||||
return;
|
||||
}
|
||||
tLog() << Q_FUNC_INFO << "jobCount = " << m_jobCount;
|
||||
tLog() << Q_FUNC_INFO << "jobQueue size = " << m_jobQueue.length();
|
||||
tLog() << Q_FUNC_INFO << "jobCount =" << m_jobCount;
|
||||
tLog() << Q_FUNC_INFO << "jobQueue size =" << m_jobQueue.length();
|
||||
if ( m_jobCount != 0 )
|
||||
return;
|
||||
|
||||
@ -202,14 +202,14 @@ ACLRegistryImpl::queueNextJob()
|
||||
ACLRegistry::ACL acl = isAuthorizedUser( dbid, job->username(), ACLRegistry::NotFound, true );
|
||||
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;
|
||||
break;
|
||||
}
|
||||
}
|
||||
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;
|
||||
QTimer::singleShot( 0, this, SLOT( queueNextJob() ) );
|
||||
return;
|
||||
@ -225,6 +225,7 @@ ACLRegistryImpl::queueNextJob()
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
void
|
||||
ACLRegistryImpl::wipeEntries()
|
||||
{
|
||||
@ -232,6 +233,7 @@ ACLRegistryImpl::wipeEntries()
|
||||
save();
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
ACLRegistryImpl::load()
|
||||
{
|
||||
@ -244,7 +246,6 @@ ACLRegistryImpl::load()
|
||||
tLog() << Q_FUNC_INFO << "entry is invalid";
|
||||
continue;
|
||||
}
|
||||
tLog() << Q_FUNC_INFO << "loading entry";
|
||||
ACLRegistry::User entryUser = entry.value< ACLRegistry::User >();
|
||||
if ( entryUser.knownAccountIds.empty() || entryUser.knownDbids.empty() )
|
||||
{
|
||||
@ -263,7 +264,7 @@ ACLRegistryImpl::save()
|
||||
QVariantList entryList;
|
||||
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 );
|
||||
if ( val.isValid() )
|
||||
entryList.append( val );
|
||||
|
Loading…
x
Reference in New Issue
Block a user