1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-11 08:34:34 +02:00

Don't output secrets in log.

This commit is contained in:
Teo Mrnjavac
2013-06-22 12:47:07 +02:00
committed by Michael Zanetti
parent 56dd8e2572
commit 612d8874df

View File

@@ -622,7 +622,8 @@ TomahawkSettings::doUpgrade( int oldVersion, int newVersion )
tDebug() << "beginGroup" << QString( "accounts/%1" ).arg( account ); tDebug() << "beginGroup" << QString( "accounts/%1" ).arg( account );
beginGroup( QString( "accounts/%1" ).arg( account ) ); beginGroup( QString( "accounts/%1" ).arg( account ) );
const QVariantHash creds = value( "credentials" ).toHash(); const QVariantHash creds = value( "credentials" ).toHash();
tDebug() << creds; tDebug() << creds[ "username" ]
<< ( creds[ "password" ].isNull() ? ", no password" : ", has password" );
if ( !creds.isEmpty() ) if ( !creds.isEmpty() )
{ {