Ticket #13619: 01_improve_logging_of_post_operations.patch

File 01_improve_logging_of_post_operations.patch, 733 bytes (added by rcrdnalor, 8 months ago)

Improve logging of 'post' operations

  • mythtv/bindings/python/MythTV/services_api/send.py

    diff --git a/mythtv/bindings/python/MythTV/services_api/send.py b/mythtv/bindings/python/MythTV/services_api/send.py
    index ca8347fe8f..d077d30e8c 100644
    a b class Send(object): 
    368368            raise RuntimeError('usage: postdata must be passed as a dict')
    369369
    370370        self.logger.debug('The following postdata was included:')
    371         for key in self.postdata:
    372             self.logger.debug('%15s: %s', key, self.postdata[key])
     371        for k, v in self.postdata.items():
     372            self.logger.debug('%15s: %s', k, v)
    373373
    374374        if not self.opts['wrmi']:
    375375            raise RuntimeWarning('wrmi=False')