Skip to content

Commit 05adea8

Browse files
committedSep 29, 2017
Pssst... Quiet, there are people around
1 parent ff385fb commit 05adea8

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed
 

‎src/core/qgsdatasourceuri.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ QgsDataSourceUri::QgsDataSourceUri( QString uri )
215215
}
216216
else
217217
{
218-
QgsDebugMsg( "parameter \"" + pname + "\":\"" + pval + "\" added" );
218+
QgsDebugMsgLevel( "parameter \"" + pname + "\":\"" + pval + "\" added", 4 );
219219
setParam( pname, pval );
220220
}
221221
}

‎src/core/qgsmaplayer.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1071,7 +1071,7 @@ QString QgsMapLayer::loadDefaultStyle( bool &resultFlag )
10711071

10721072
bool QgsMapLayer::loadNamedStyleFromDatabase( const QString &db, const QString &uri, QString &qml )
10731073
{
1074-
QgsDebugMsg( QString( "db = %1 uri = %2" ).arg( db, uri ) );
1074+
QgsDebugMsgLevel( QString( "db = %1 uri = %2" ).arg( db, uri ), 4 );
10751075

10761076
bool resultFlag = false;
10771077

@@ -1081,7 +1081,7 @@ bool QgsMapLayer::loadNamedStyleFromDatabase( const QString &db, const QString &
10811081
const char *myTail = nullptr;
10821082
int myResult;
10831083

1084-
QgsDebugMsg( QString( "Trying to load style for \"%1\" from \"%2\"" ).arg( uri, db ) );
1084+
QgsDebugMsgLevel( QString( "Trying to load style for \"%1\" from \"%2\"" ).arg( uri, db ), 4 );
10851085

10861086
if ( db.isEmpty() || !QFile( db ).exists() )
10871087
return false;
@@ -1116,7 +1116,7 @@ bool QgsMapLayer::loadNamedStyleFromDatabase( const QString &db, const QString &
11161116

11171117
QString QgsMapLayer::loadNamedStyle( const QString &uri, bool &resultFlag )
11181118
{
1119-
QgsDebugMsg( QString( "uri = %1 myURI = %2" ).arg( uri, publicSource() ) );
1119+
QgsDebugMsgLevel( QString( "uri = %1 myURI = %2" ).arg( uri, publicSource() ), 4 );
11201120

11211121
resultFlag = false;
11221122

@@ -1138,7 +1138,7 @@ QString QgsMapLayer::loadNamedStyle( const QString &uri, bool &resultFlag )
11381138
else
11391139
{
11401140
QFileInfo project( QgsProject::instance()->fileName() );
1141-
QgsDebugMsg( QString( "project fileName: %1" ).arg( project.absoluteFilePath() ) );
1141+
QgsDebugMsgLevel( QString( "project fileName: %1" ).arg( project.absoluteFilePath() ), 4 );
11421142

11431143
QString qml;
11441144
if ( loadNamedStyleFromDatabase( QDir( QgsApplication::qgisSettingsDirPath() ).absoluteFilePath( QStringLiteral( "qgis.qmldb" ) ), uri, qml ) ||

‎src/core/qgsvectorlayer.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1524,7 +1524,7 @@ bool QgsVectorLayer::setDataProvider( QString const &provider )
15241524

15251525
connect( mDataProvider, &QgsVectorDataProvider::raiseError, this, &QgsVectorLayer::raiseError );
15261526

1527-
QgsDebugMsg( "Instantiated the data provider plugin" );
1527+
QgsDebugMsgLevel( "Instantiated the data provider plugin", 4 );
15281528

15291529
mValid = mDataProvider->isValid();
15301530
if ( !mValid )
@@ -2691,7 +2691,7 @@ bool QgsVectorLayer::addFeatures( QgsFeatureList &features, Flags )
26912691

26922692
void QgsVectorLayer::setCoordinateSystem()
26932693
{
2694-
QgsDebugMsg( "----- Computing Coordinate System" );
2694+
QgsDebugMsgLevel( "----- Computing Coordinate System", 4 );
26952695

26962696
//
26972697
// Get the layers project info and set up the QgsCoordinateTransform
@@ -3043,7 +3043,6 @@ QVariant QgsVectorLayer::defaultValue( int index, const QgsFeature &feature, Qgs
30433043
return QVariant();
30443044

30453045
QString expression = mFields.at( index ).defaultValueDefinition().expression();
3046-
qWarning() << "DEFAUL TVALUE" << expression;
30473046
if ( expression.isEmpty() )
30483047
return mDataProvider->defaultValue( index );
30493048

0 commit comments

Comments
 (0)
Please sign in to comment.