Skip to content
Permalink
Browse files

Added level to message log

  • Loading branch information
luipir committed Sep 26, 2017
1 parent 850ccb6 commit bcd2e0463840844dd26134ab13e0ab5fa793c804
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/qgsvectorlayereditbuffer.cpp
@@ -201,7 +201,7 @@ bool QgsVectorLayerEditBuffer::adaptGeometry( QgsGeometry* geometry )
QgsGeometry* newGeom = provider->convertToProviderType( geometry );
if ( !newGeom )
{
QgsMessageLog::logMessage( tr( "ERROR: geometry type is not compatible with the layer.", "not compatible geometry" ) );
QgsMessageLog::logMessage( tr( "Geometry type is not compatible with the layer.", "not compatible geometry" ), "adaptGeometry", QgsMessageLog::CRITICAL );
return false;
}
geometry = newGeom;
@@ -228,7 +228,7 @@ bool QgsVectorLayerEditBuffer::changeGeometry( QgsFeatureId fid, QgsGeometry* ge
// if not then try to convert to a compatible geometry type
if ( !adaptGeometry( geom ) )
{
QgsMessageLog::logMessage( tr( "ERROR: feature %1 not updated", "not updated feature" ).arg( fid ) );
QgsMessageLog::logMessage( tr( "Feature %1 not updated", "not updated feature" ).arg( fid ), "changeGeometry", QgsMessageLog::CRITICAL );
return false;
}

0 comments on commit bcd2e04

Please sign in to comment.
You can’t perform that action at this time.