mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-10-22 08:25:21 +08:00
fix(logging): make shutdown queue retry explicit
This commit is contained in:
@@ -136,7 +136,9 @@ class NonBlockingConsoleHandler(logging.Handler):
|
||||
self._queue.get_nowait()
|
||||
self.dropped_records += 1
|
||||
except queue.Empty:
|
||||
pass
|
||||
# The writer consumed the last record after Full;
|
||||
# retry inserting the shutdown sentinel.
|
||||
continue
|
||||
self._worker.join(timeout=CONSOLE_CLOSE_TIMEOUT)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user