From f4bf9024fd7ca6aaef93f85b05504db9658230d6 Mon Sep 17 00:00:00 2001 From: Zehkira <9485872-zehkira@users.noreply.gitlab.com> Date: Thu, 9 Oct 2025 13:43:41 +0200 Subject: [PATCH 1/4] Rename DEBUG variable --- source/monophony/debug.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/monophony/debug.py b/source/monophony/debug.py index 9926d7c..a302368 100644 --- a/source/monophony/debug.py +++ b/source/monophony/debug.py @@ -6,7 +6,7 @@ from monophony import logging from gi.repository import GLib, GObject -_DEBUG_VARIABLE = 'DEBUG' +_DEBUG_VARIABLE = 'MONOPHONY_DEBUG' def is_active() -> bool: -- GitLab From ec27a4e3bc9962fb15aad763ec29474ccecb3b53 Mon Sep 17 00:00:00 2001 From: Zehkira <9485872-zehkira@users.noreply.gitlab.com> Date: Thu, 9 Oct 2025 13:45:23 +0200 Subject: [PATCH 2/4] Rename LOG_LEVELS variable --- source/monophony/logging.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/monophony/logging.py b/source/monophony/logging.py index 925da27..72ec483 100644 --- a/source/monophony/logging.py +++ b/source/monophony/logging.py @@ -11,7 +11,7 @@ from monophony import NAME, __version__ from gi.repository import GLib -_LOG_LEVELS_VARIABLE = 'LOG_LEVELS' +_LOG_LEVELS_VARIABLE = 'MONOPHONY_LOG_LEVELS' _DEFAULT_LOG_LEVELS = 'INFO,WARN,ERRO' -- GitLab From f61e06abf1f4ddeb10bc5dc291d63ceb15b1d7da Mon Sep 17 00:00:00 2001 From: Zehkira <9485872-zehkira@users.noreply.gitlab.com> Date: Thu, 9 Oct 2025 13:47:05 +0200 Subject: [PATCH 3/4] Update variable name in CI --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index cf38c16..dc1b324 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -26,7 +26,7 @@ test: - desktop-file-validate source/data/*.desktop - find source/locales/ | tr "\n" " " | grep -vq \.mo - make --directory=source/ flatpak - - flatpak run --filesystem=$CI_PROJECT_DIR/source/tests/:ro --command=source/tests/tests.py --env=LOG_LEVELS=ERRO ${APP_ID} + - flatpak run --filesystem=$CI_PROJECT_DIR/source/tests/:ro --command=source/tests/tests.py --env=MONOPHONY_LOG_LEVELS=ERRO ${APP_ID} .build: -- GitLab From f77ec6629734ab8859abfe8a167a79a381a34fa1 Mon Sep 17 00:00:00 2001 From: Zehkira <9485872-zehkira@users.noreply.gitlab.com> Date: Thu, 9 Oct 2025 13:48:22 +0200 Subject: [PATCH 4/4] Update documentation --- CONTRIBUTING.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 1cc4900..e434e43 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -5,8 +5,8 @@ Before making any changes, make sure that your editor supports [EditorConfig](ht ## Debugging The following environment variables are available: -- `DEBUG`: Print memory information to help with finding leaks (unset by default) -- `LOG_LEVELS`: Only print log messages of specified levels (`INFO,WARN,ERRO` by default) +- `MONOPHONY_DEBUG`: Print memory information to help with finding leaks (unset by default) +- `MONOPHONY_LOG_LEVELS`: Only print log messages of specified levels (`INFO,WARN,ERRO` by default) When running the app, environment variables can be set with `--env`: -- GitLab