diff --git a/exchangelib/services.py b/exchangelib/services.py index 2835029..838f9e3 100644 --- a/exchangelib/services.py +++ b/exchangelib/services.py @@ -507,7 +507,15 @@ def _get_elements_in_response(self, response): yield c except ErrorInvalidIdMalformedEwsLegacyIdFormat as e: msg_text = get_xml_attr(msg, '{%s}MessageText' % MNS) - log.error('Caught ErrorInvalidIdMalformedEwsLegacyIdFormat error', error=str(e), exc_info=True, response_msg=msg_text) + log.error( + 'Caught ErrorInvalidIdMalformedEwsLegacyIdFormat' + '\nerror: %s' + '\nmsg_response: %s', + str(e), + msg_text, + exc_info=True + ) + continue @staticmethod