Mercurial > hg > orthanc
diff Plugins/Include/orthanc/OrthancCPlugin.h @ 2960:74a5a7fd6e0e
log flag to OrthancPluginSetHttpErrorDetails
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 04 Dec 2018 18:56:39 +0100 |
parents | ccf61f6e22ef |
children | 792a65fdd94b |
line wrap: on
line diff
--- a/Plugins/Include/orthanc/OrthancCPlugin.h Tue Dec 04 16:43:53 2018 +0100 +++ b/Plugins/Include/orthanc/OrthancCPlugin.h Tue Dec 04 18:56:39 2018 +0100 @@ -6433,6 +6433,7 @@ { OrthancPluginRestOutput* output; const char* details; + uint8_t log; } _OrthancPluginSetHttpErrorDetails; /** @@ -6449,12 +6450,14 @@ * @param context The Orthanc plugin context, as received by OrthancPluginInitialize(). * @param output The HTTP connection to the client application. * @param details The details of the error message. + * @param log Whether to also write the detailed error to the Orthanc logs. * @ingroup REST **/ ORTHANC_PLUGIN_INLINE void OrthancPluginSetHttpErrorDetails( OrthancPluginContext* context, OrthancPluginRestOutput* output, - const char* details) + const char* details, + uint8_t log) { _OrthancPluginSetHttpErrorDetails params; params.output = output;