Don't show full debug log without --verbose.
This commit is contained in:
parent
af000a8ac6
commit
c052c8a107
@ -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")
|
||||
|
@ -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)
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user