Skip to content

Commit

Permalink
Less debug noise
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jan 30, 2021
1 parent 9fb554f commit 2690510
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
32 changes: 16 additions & 16 deletions src/gui/raster/qgsrasterlayerproperties.cpp
Expand Up @@ -349,8 +349,8 @@ QgsRasterLayerProperties::QgsRasterLayerProperties( QgsMapLayer *lyr, QgsMapCanv
mPostgresRasterTemporalGroup->setVisible( false );
}

QgsDebugMsg( "Setting crs to " + mRasterLayer->crs().toWkt( QgsCoordinateReferenceSystem::WKT_PREFERRED ) );
QgsDebugMsg( "Setting crs to " + mRasterLayer->crs().userFriendlyIdentifier() );
QgsDebugMsgLevel( "Setting crs to " + mRasterLayer->crs().toWkt( QgsCoordinateReferenceSystem::WKT_PREFERRED ), 2 );
QgsDebugMsgLevel( "Setting crs to " + mRasterLayer->crs().userFriendlyIdentifier(), 2 );
mCrsSelector->setCrs( mRasterLayer->crs() );

// Set text for pyramid info box
Expand Down Expand Up @@ -642,7 +642,7 @@ void QgsRasterLayerProperties::populateTransparencyTable( QgsRasterRenderer *ren

void QgsRasterLayerProperties::setRendererWidget( const QString &rendererName )
{
QgsDebugMsg( "rendererName = " + rendererName );
QgsDebugMsgLevel( "rendererName = " + rendererName, 3 );
QgsRasterRendererWidget *oldWidget = mRendererWidget;
QgsRasterRenderer *oldRenderer = mRasterLayer->renderer();

Expand All @@ -662,7 +662,7 @@ void QgsRasterLayerProperties::setRendererWidget( const QString &rendererName )
{
if ( rendererEntry.widgetCreateFunction ) //single band color data renderer e.g. has no widget
{
QgsDebugMsg( QStringLiteral( "renderer has widgetCreateFunction" ) );
QgsDebugMsgLevel( QStringLiteral( "renderer has widgetCreateFunction" ), 3 );
// Current canvas extent (used to calc min/max) in layer CRS
QgsRectangle myExtent = mMapCanvas->mapSettings().outputExtentToLayerExtent( mRasterLayer, mMapCanvas->extent() );
if ( oldWidget && ( !oldRenderer || rendererName != oldRenderer->type() ) )
Expand Down Expand Up @@ -776,7 +776,7 @@ void QgsRasterLayerProperties::sync()
}
}

QgsDebugMsg( QStringLiteral( "populate transparency tab" ) );
QgsDebugMsgLevel( QStringLiteral( "populate transparency tab" ), 3 );

/*
* Style tab
Expand Down Expand Up @@ -842,7 +842,7 @@ void QgsRasterLayerProperties::sync()
lblSrcNoDataValue->setEnabled( enableSrcNoData );

QgsRasterRangeList noDataRangeList = provider->userNoDataValues( 1 );
QgsDebugMsg( QStringLiteral( "noDataRangeList.size = %1" ).arg( noDataRangeList.size() ) );
QgsDebugMsgLevel( QStringLiteral( "noDataRangeList.size = %1" ).arg( noDataRangeList.size() ), 3 );
if ( !noDataRangeList.isEmpty() )
{
leNoDataValue->insert( QgsRasterBlock::printValue( noDataRangeList.value( 0 ).min() ) );
Expand All @@ -858,12 +858,12 @@ void QgsRasterLayerProperties::sync()

populateTransparencyTable( mRasterLayer->renderer() );

QgsDebugMsg( QStringLiteral( "populate colormap tab" ) );
QgsDebugMsgLevel( QStringLiteral( "populate colormap tab" ), 3 );
/*
* Transparent Pixel Tab
*/

QgsDebugMsg( QStringLiteral( "populate general tab" ) );
QgsDebugMsgLevel( QStringLiteral( "populate general tab" ), 3 );
/*
* General Tab
*/
Expand Down Expand Up @@ -952,7 +952,7 @@ void QgsRasterLayerProperties::apply()
*/
mLegendConfigEmbeddedWidget->applyToLayer();

QgsDebugMsg( QStringLiteral( "apply processing symbology tab" ) );
QgsDebugMsgLevel( QStringLiteral( "apply processing symbology tab" ), 3 );
/*
* Symbology Tab
*/
Expand All @@ -964,7 +964,7 @@ void QgsRasterLayerProperties::apply()
mRasterLayer->brightnessFilter()->setContrast( mSliderContrast->value() );
mRasterLayer->brightnessFilter()->setGamma( mGammaSpinBox->value() );

QgsDebugMsg( QStringLiteral( "processing transparency tab" ) );
QgsDebugMsgLevel( QStringLiteral( "processing transparency tab" ), 3 );
/*
* Transparent Pixel Tab
*/
Expand Down Expand Up @@ -1042,7 +1042,7 @@ void QgsRasterLayerProperties::apply()
rasterRenderer->setOpacity( mOpacityWidget->opacity() );
}

QgsDebugMsg( QStringLiteral( "processing general tab" ) );
QgsDebugMsgLevel( QStringLiteral( "processing general tab" ), 3 );
/*
* General Tab
*/
Expand Down Expand Up @@ -1603,7 +1603,7 @@ void QgsRasterLayerProperties::pbnDefaultValues_clicked()

void QgsRasterLayerProperties::setTransparencyCell( int row, int column, double value )
{
QgsDebugMsg( QStringLiteral( "value = %1" ).arg( value, 0, 'g', 17 ) );
QgsDebugMsgLevel( QStringLiteral( "value = %1" ).arg( value, 0, 'g', 17 ), 3 );
QgsRasterDataProvider *provider = mRasterLayer->dataProvider();
if ( !provider ) return;

Expand Down Expand Up @@ -1740,7 +1740,7 @@ void QgsRasterLayerProperties::pbnExportTransparentPixelValues_clicked()
void QgsRasterLayerProperties::transparencyCellTextEdited( const QString &text )
{
Q_UNUSED( text )
QgsDebugMsg( QStringLiteral( "text = %1" ).arg( text ) );
QgsDebugMsgLevel( QStringLiteral( "text = %1" ).arg( text ), 3 );
QgsRasterRenderer *renderer = mRendererWidget->renderer();
if ( !renderer )
{
Expand All @@ -1766,14 +1766,14 @@ void QgsRasterLayerProperties::transparencyCellTextEdited( const QString &text )
}
if ( row != -1 ) break;
}
QgsDebugMsg( QStringLiteral( "row = %1 column =%2" ).arg( row ).arg( column ) );
QgsDebugMsgLevel( QStringLiteral( "row = %1 column =%2" ).arg( row ).arg( column ), 3 );

if ( column == 0 )
{
QLineEdit *toLineEdit = dynamic_cast<QLineEdit *>( tableTransparency->cellWidget( row, 1 ) );
if ( !toLineEdit ) return;
bool toChanged = mTransparencyToEdited.value( row );
QgsDebugMsg( QStringLiteral( "toChanged = %1" ).arg( toChanged ) );
QgsDebugMsgLevel( QStringLiteral( "toChanged = %1" ).arg( toChanged ), 3 );
if ( !toChanged )
{
toLineEdit->setText( lineEdit->text() );
Expand Down Expand Up @@ -1992,7 +1992,7 @@ void QgsRasterLayerProperties::pixelSelected( const QgsPointXY &canvasPoint, con
return; // Don't add nodata, transparent anyway
}
double value = myPixelMap.value( bandNo ).toDouble();
QgsDebugMsg( QStringLiteral( "value = %1" ).arg( value, 0, 'g', 17 ) );
QgsDebugMsgLevel( QStringLiteral( "value = %1" ).arg( value, 0, 'g', 17 ), 3 );
values.append( value );
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/providers/arcgisrest/qgsarcgisrestsourceselect.cpp
Expand Up @@ -315,8 +315,8 @@ void QgsArcGisRestSourceSelect::addButtonClicked()
try
{
extent = QgsCoordinateTransform( canvasCrs, pCrs, QgsProject::instance()->transformContext() ).transform( extent );
QgsDebugMsg( QStringLiteral( "canvas transform: Canvas CRS=%1, Provider CRS=%2, BBOX=%3" )
.arg( canvasCrs.authid(), pCrs.authid(), extent.asWktCoordinates() ) );
QgsDebugMsgLevel( QStringLiteral( "canvas transform: Canvas CRS=%1, Provider CRS=%2, BBOX=%3" )
.arg( canvasCrs.authid(), pCrs.authid(), extent.asWktCoordinates() ), 3 );
}
catch ( const QgsCsException & )
{
Expand Down Expand Up @@ -422,7 +422,7 @@ void QgsArcGisRestSourceSelect::cmbConnections_activated( int index )
void QgsArcGisRestSourceSelect::treeWidgetCurrentRowChanged( const QModelIndex &current, const QModelIndex &previous )
{
Q_UNUSED( previous )
QgsDebugMsg( QStringLiteral( "treeWidget_currentRowChanged called" ) );
QgsDebugMsgLevel( QStringLiteral( "treeWidget_currentRowChanged called" ), 3 );
updateCrsLabel();
updateImageEncodings();

Expand Down

0 comments on commit 2690510

Please sign in to comment.