Commit 0c41d529 authored by Boxiang Sun's avatar Boxiang Sun

use repr to get the error_log content

parent 283534f9
...@@ -173,11 +173,11 @@ class SoftwareRelease(SlapDocument): ...@@ -173,11 +173,11 @@ class SoftwareRelease(SlapDocument):
logger.info('Boxiang debug: url: %s', self.getURI()) logger.info('Boxiang debug: url: %s', self.getURI())
logger.info('Boxiang debug: computer_id: %s', self.getComputerId()) logger.info('Boxiang debug: computer_id: %s', self.getComputerId())
logger.info('Boxiang debug: error_log: %s', repr(error_log)) logger.info('Boxiang debug: error_log: %s', repr(error_log))
a = str(error_log) a = repr(error_log)
self._connection_helper.POST('softwareReleaseError', data={ self._connection_helper.POST('softwareReleaseError', data={
'url': self.getURI(), 'url': self.getURI(),
'computer_id': self.getComputerId(), 'computer_id': self.getComputerId(),
'error_log': error_log}) 'error_log': repr(error_log)})
except Exception: except Exception:
(logger or fallback_logger).exception('') (logger or fallback_logger).exception('')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment