Philipp Hörist pushed to branch gtk4 at gajim / gajim


Commits:
dc3a01d0 by Philipp Hörist at 2024-10-08T22:06:37+02:00
refactor: Simplify enabling leak logging

- - - - -


1 changed file:

- gajim/common/logging_helpers.py


Changes:

=====================================
gajim/common/logging_helpers.py
=====================================
@@ -196,6 +196,9 @@ def init() -> None:
     root_log.addHandler(stream_handler)
     root_log.propagate = False
 
+    if os.environ.get('GAJIM_LEAK'):
+        logging.getLogger('gajim.leak').setLevel(logging.DEBUG)
+
     # GAJIM_DEBUG is set only on Windows when using Gajim-Debug.exe
     # Gajim-Debug.exe shows a command line prompt and we want to redirect
     # log output to it



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/dc3a01d0dd63af7315efdb5321d286e35138abf5

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/dc3a01d0dd63af7315efdb5321d286e35138abf5
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to