Log exception on server side

This commit is contained in:
Blottiere Paul 2019-03-22 10:10:29 +00:00
parent e9067834eb
commit 10c02e72a1

View File

@ -84,5 +84,8 @@ void QgsServerResponse::write( const QgsServerException &ex )
setStatusCode( ex.responseCode() );
setHeader( "Content-Type", responseFormat );
write( ba );
// log exception on server side too
QgsMessageLog::logMessage( ba, QStringLiteral( "Server" ), Qgis::Critical );
}