Skip to content

Commit

Permalink
print logmessage instead of debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
signedav authored and m-kuhn committed Aug 19, 2019
1 parent 27b466f commit e0a5e94
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/fieldformatter/qgsvaluerelationfieldformatter.cpp
Expand Up @@ -23,6 +23,7 @@
#include "qgsexpressioncontextutils.h"
#include "qgsvectorlayerref.h"
#include "qgspostgresstringutils.h"
#include "qgsmessagelog.h"

#include <nlohmann/json.hpp>
using json = nlohmann::json;
Expand Down Expand Up @@ -209,7 +210,7 @@ QStringList QgsValueRelationFieldFormatter::valueToStringList( const QVariant &v
}
catch ( json::parse_error &ex )
{
qDebug() << QString::fromStdString( ex.what() );
QgsMessageLog::logMessage( QObject::tr( "Cannot parse JSON like string '%1' Error: %2" ).arg( newVal.toString(), ex.what() ) );
}
}
}
Expand Down

0 comments on commit e0a5e94

Please sign in to comment.