Skip to content

Commit

Permalink
ews: hide ews_beta messages behind logging config directives
Browse files Browse the repository at this point in the history
  • Loading branch information
grammmike committed Dec 29, 2023
1 parent eb88719 commit 7393c64
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions exch/ews/ews.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,10 @@ http_status EWSPlugin::dispatch(int ctx_id, HTTP_AUTH_INFO& auth_info, const voi
}
else try {
handler->second(request, responseContainer, context);
} catch (const Exceptions::UnknownRequestError &err) {
if ((request_logging || response_logging) && enableLog)
mlog(LV_WARN, "[ews#%d]%s Error: %s", ctx_id, timestamp().c_str(), err.what());
return fault(ctx_id, http_status::server_error, SOAP::Envelope::fault("SOAP:Server", err.what()));
} catch (const Exceptions::InputError &err) {
if(response_logging && enableLog)
mlog(LV_WARN, "[ews#%d]%s Done, code 200, input error: '%s'", ctx_id, timestamp().c_str(), err.what());
Expand Down

0 comments on commit 7393c64

Please sign in to comment.