diff options
| author | Andrew Dolgov <fox@fakecake.org> | 2026-07-05 12:09:40 +0300 |
|---|---|---|
| committer | Andrew Dolgov <fox@fakecake.org> | 2026-07-05 12:09:40 +0300 |
| commit | 0b3ec5ad63dcdcb6481b7164e88430e5f617b518 (patch) | |
| tree | 5b2f0d3f5d064152168772464007417852872d77 | |
| parent | cc4ad0ca74ce80d42a4bc01d775c54ff8f2b845d (diff) | |
| download | fungus-launcher-0b3ec5ad63dcdcb6481b7164e88430e5f617b518.tar.gz fungus-launcher-0b3ec5ad63dcdcb6481b7164e88430e5f617b518.tar.xz | |
set log level to info unless verbose is passed
| -rw-r--r-- | fungus-launcher.py | 2 | ||||
| -rw-r--r-- | fungus-proton-manager.py | 2 | ||||
| -rw-r--r-- | fungus-run.py | 2 | ||||
| -rw-r--r-- | fungus/game_launcher.py | 15 |
4 files changed, 17 insertions, 4 deletions
diff --git a/fungus-launcher.py b/fungus-launcher.py index 4b325d4..9496597 100644 --- a/fungus-launcher.py +++ b/fungus-launcher.py @@ -29,6 +29,8 @@ def main() -> None: if args.verbose: set_level(logging.DEBUG) + else: + set_level(logging.INFO) from fungus.app import FungusApp diff --git a/fungus-proton-manager.py b/fungus-proton-manager.py index 3e8a991..ebaf339 100644 --- a/fungus-proton-manager.py +++ b/fungus-proton-manager.py @@ -39,6 +39,8 @@ def main() -> None: if args.verbose: set_level(logging.DEBUG) + else: + set_level(logging.INFO) apply_dark_theme() win = ProtonDownloader() diff --git a/fungus-run.py b/fungus-run.py index 7c0bc89..1374026 100644 --- a/fungus-run.py +++ b/fungus-run.py @@ -31,6 +31,8 @@ def main() -> None: if args.verbose: set_level(logging.DEBUG) + else: + set_level(logging.INFO) from fungus.run_manager import handle_command, load_game diff --git a/fungus/game_launcher.py b/fungus/game_launcher.py index 68efca6..b3b2fdc 100644 --- a/fungus/game_launcher.py +++ b/fungus/game_launcher.py @@ -6,6 +6,7 @@ The GTK adapter lives in ``fungus.run_manager``. from __future__ import annotations +import logging import os import re import signal @@ -64,7 +65,8 @@ class GameLauncher: SANDBOX_ENV_KEYS: tuple[str, ...] = ( "DRI_PRIME", "__NV_PRIME_RENDER_OFFLOAD", "__VK_LAYER_NV_OPTIMUS", "__GLX_VENDOR_LIBRARY_NAME", - "GAMEID", "PROTONFIXES_DISABLE", "WINEPREFIX", + "GAMEID", "PROTONFIXES_DISABLE", "WINEPREFIX", "WINEDLLOVERRIDES", + "UMU_LOG", "PROTON_LOG" ) # Predefined bwrap mount entries, grouped by type. @@ -359,6 +361,10 @@ class GameLauncher: self.start_time = time.time() os.environ["UMU_RUNTIME_UPDATE"] = "0" + if logging.root.level <= logging.DEBUG: + os.environ["UMU_LOG"] = "debug" + os.environ["PROTON_LOG"] = "1" + if ( "umu" not in os.environ.get("GAMEID", "") and not (os.environ.get("GAMEID", "").isnumeric()) @@ -410,6 +416,9 @@ class GameLauncher: self.game, valid_dirs, self.env_from_file, ) + log.info(f"final bwrap command: {bwrap_cmd}") + log.info(f"sandbox environment: {sandbox_env}") + # ── Launch ────────────────────────────────────────────────── run_env = os.environ.copy() run_env.update(sandbox_env) @@ -581,9 +590,7 @@ class GameLauncher: if not clean_line: return - log.debug("_on_io_line: [%s] %s", "err" if is_stderr else "out", clean_line) - - + # log.debug("_on_io_line: [%s] %s", "err" if is_stderr else "out", clean_line) # Dispatch to callback if self._on_output_line: |
