Skip to content

Commit

Permalink
Remove debug stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Jun 6, 2019
1 parent 6b8aa01 commit 430845e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
9 changes: 0 additions & 9 deletions src/auth/basic/qgsauthbasicmethod.cpp
Expand Up @@ -127,14 +127,6 @@ bool QgsAuthBasicMethod::updateDataSourceUriItems( QStringList &connectionItems,
{
caparam = "sslrootcert='" + caFilePath + "'";
}
QFile f( caFilePath );
if ( !f.open( QFile::ReadOnly | QFile::Text ) )
{
qWarning() << "Could not open ca cert file!!";
}
QTextStream in( &f );
qWarning() << caparam;
qWarning() << f.size() << in.readAll();
}

// Branch for OGR
Expand Down Expand Up @@ -290,7 +282,6 @@ bool QgsAuthBasicMethod::updateDataSourceUriItems( QStringList &connectionItems,
else
{
connectionItems.append( caparam );
qWarning() << QStringLiteral( "Connection items after appending %1" ).arg( connectionItems.join( "&" ) );
}
}
}
Expand Down
5 changes: 0 additions & 5 deletions tests/src/python/test_authmanager_password_postgres.py
Expand Up @@ -100,11 +100,6 @@ def setUpClass(cls):
cls.certsdata_path = os.path.join(unitTestDataPath('auth_system'), 'certs_keys')
cls.sslrootcert_path = os.path.join(cls.certsdata_path, 'chains_subissuer-issuer-root_issuer2-root2.pem')

def printMessage(tag, msg, level):
with open('/tmp/fmt.log', 'a') as f:
f.write('{}: {}'.format(tag, msg))
QgsApplication.instance().messageLog().messageReceived.connect(printMessage)

def setUp(self):
"""Run before each test."""
pass
Expand Down

0 comments on commit 430845e

Please sign in to comment.