Skip to content

Commit

Permalink
logmessaged: handle interrupted rollover (#28572)
Browse files Browse the repository at this point in the history
old-commit-hash: 8704c1f
  • Loading branch information
adeebshihadeh authored Jun 16, 2023
1 parent 4739f5e commit cfc1a54
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion system/logmessaged.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,12 @@ def main() -> NoReturn:
finally:
sock.close()
ctx.term()
log_handler.close()

# can hit this if interrupted during a rollover
try:
log_handler.close()
except ValueError:
pass

if __name__ == "__main__":
main()

0 comments on commit cfc1a54

Please sign in to comment.