Commit 8329bee8 authored by David Wilson's avatar David Wilson

parent: log discard_until() input when IOLOG is enabled

Trying to diagnose a Reddit user's problem.
parent 12c6e574
......@@ -215,6 +215,9 @@ def iter_read(fd, deadline=None):
def discard_until(fd, s, deadline):
for buf in iter_read(fd, deadline):
if IOLOG.level == logging.DEBUG:
for line in buf.splitlines():
IOLOG.debug('discard_until: discarding %r', line)
if buf.endswith(s):
return
......
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