Skip to content
Permalink
Browse files

Log exception on server side

  • Loading branch information
pblottiere committed Mar 22, 2019
1 parent e906783 commit 10c02e72a1965b5541986f09be5d2f2fb3035a9a
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/server/qgsserverresponse.cpp
@@ -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.
You can’t perform that action at this time.