Skip to content

Commit

Permalink
Log exception on server side
Browse files Browse the repository at this point in the history
  • Loading branch information
pblottiere committed Mar 22, 2019
1 parent e906783 commit 10c02e7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/server/qgsserverresponse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}

0 comments on commit 10c02e7

Please sign in to comment.