From 1b445a8d80c4e5e4d3260a35bfefb0e5ca1cf94e Mon Sep 17 00:00:00 2001 From: MarcusStill <69536339+MarcusStill@users.noreply.github.com> Date: Tue, 8 Sep 2026 03:37:50 +0000 Subject: [PATCH] Fix loguru async buffering and shutdown log loss - Implemented `buffering=1` for line-buffering in logger.add() so logs immediately flush to disk instead of being cached in memory until closure. - Updated `logger.add()` to accept a fallback configurable uppercase log level dynamically fetched from the [OTHER] section of `config.ini` avoiding breaking crashes for lacking configurations. - Added explicit `logger.complete()` before system exits (in exceptions hook, missing database startup, and standard GUI main exit) to ensure queued log processes safely conclude before shutting down the main app avoiding lost error messages.