trace-level logging for all the chrome output

because the important/unimportant messages are always shifting and we're
not even trying to keep up with it and mostly it's just noise
This commit is contained in:
Noah Levitt 2018-10-11 15:43:05 -07:00
parent 1e95441ce7
commit e406e42312

View File

@ -244,33 +244,15 @@ class Chrome:
while not self._shutdown.is_set():
buf = readline_nonblock(self.chrome_process.stdout)
if buf:
if re.search(
b'Xlib: extension|'
b'CERT_PKIXVerifyCert for [^ ]* failed|'
b'^ALSA lib|ERROR:gl_surface_glx.cc|'
b'ERROR:gpu_child_thread.cc', buf):
self.logger.trace(
'chrome pid %s STDOUT %s',
self.chrome_process.pid, buf)
else:
self.logger.debug(
'chrome pid %s STDOUT %s',
self.chrome_process.pid, buf)
self.logger.trace(
'chrome pid %s STDOUT %s',
self.chrome_process.pid, buf)
buf = readline_nonblock(self.chrome_process.stderr)
if buf:
if re.search(
b'Xlib: extension|'
b'CERT_PKIXVerifyCert for [^ ]* failed|'
b'^ALSA lib|ERROR:gl_surface_glx.cc|'
b'ERROR:gpu_child_thread.cc', buf):
self.logger.trace(
'chrome pid %s STDOUT %s',
self.chrome_process.pid, buf)
else:
self.logger.debug(
'chrome pid %s STDERR %s',
self.chrome_process.pid, buf)
self.logger.trace(
'chrome pid %s STDERR %s',
self.chrome_process.pid, buf)
except:
self.logger.error('unexpected exception', exc_info=True)