mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
io.StringIO has no attribute 'reset'.
This commit is contained in:
parent
46b89cfc0e
commit
ed193e7cc7
@ -165,13 +165,13 @@ def upkeep():
|
||||
s = sys.stdout.getvalue()
|
||||
if s:
|
||||
log.warning('Printed to stdout after daemonization: %s', s)
|
||||
sys.stdout.reset() # Seeks to 0.
|
||||
sys.stdout.seek(0)
|
||||
sys.stdout.truncate() # Truncates to current offset.
|
||||
assert not type(sys.stderr) == file, 'Not a StringIO object!'
|
||||
s = sys.stderr.getvalue()
|
||||
if s:
|
||||
log.error('Printed to stderr after daemonization: %s', s)
|
||||
sys.stderr.reset() # Seeks to 0.
|
||||
sys.stderr.seek(0)
|
||||
sys.stderr.truncate() # Truncates to current offset.
|
||||
doFlush = conf.supybot.flush() and not starting
|
||||
if doFlush:
|
||||
|
Loading…
Reference in New Issue
Block a user