# # # patch "mtn.py" # from [928e6014f2482f0a10cd1a9d2d586fa6f9f11261] # to [ce82ebdbae23625213b452bda42dc803555e69a8] # ============================================================ --- mtn.py 928e6014f2482f0a10cd1a9d2d586fa6f9f11261 +++ mtn.py ce82ebdbae23625213b452bda42dc803555e69a8 @@ -92,9 +92,7 @@ class Automate(Runner): break except: # mtn has died underneath the automate; restart it - debug("exception... stop") - import traceback - debug(traceback.format_exc()) + debug("exception writing to child process; attempting restart.") self.stop() import sys @@ -141,7 +139,6 @@ class Automate(Runner): code_max = -1 data_buf = '' for code, is_last, data in read_result_packets(): - debug((code, is_last, data)) if code and code > code_max: code_max = code data_buf += data @@ -149,7 +146,6 @@ class Automate(Runner): idx = data_buf.find('\n') if idx == -1: break - debug(('yielding', data_buf[:idx])) yield data_buf[:idx] data_buf = data_buf[idx+1:] # left over data? @@ -309,7 +305,6 @@ class Operations: yield line def get_revision(self, revision): - debug(map(None, self.automate.run('get_revision', [revision]))) for stanza in basic_io_from_stream(self.automate.run('get_revision', [revision])): yield stanza