Don't show full debug log without --verbose.

This commit is contained in:
Florian Bruhin 2015-10-13 06:40:12 +02:00
parent af000a8ac6
commit c052c8a107
3 changed files with 5 additions and 1 deletions

View File

@ -78,6 +78,10 @@ class QuteProc(testprocess.Process):
raise testprocess.InvalidLine
log_line = LogLine(**match.groupdict())
if (log_line.loglevel in ['INFO', 'WARNING', 'ERROR'] or
pytest.config.getoption('--verbose')):
print(line)
start_okay_message = ("load status for "
"<qutebrowser.browser.webview.WebView tab_id=0 "
"url='about:blank'>: LoadStatus.success")

View File

@ -98,7 +98,6 @@ class Process(QObject):
while self.proc.canReadLine():
line = self.proc.readLine()
line = bytes(line).decode('utf-8').rstrip('\r\n')
print(line)
try:
parsed = self._parse_line(line)

View File

@ -84,6 +84,7 @@ class HTTPBin(testprocess.Process):
return self._get_data()
def _parse_line(self, line):
print(line)
if line == (' * Running on http://127.0.0.1:{}/ (Press CTRL+C to '
'quit)'.format(self.port)):
self.ready.emit()