Skip to content

Commit

Permalink
feat: add more log statements
Browse files Browse the repository at this point in the history
* umu_run: log version

* umu_run: log host environment variables

* umu_run: log python version info
  • Loading branch information
R1kaB3rN committed Oct 16, 2024
1 parent ba9d24c commit a6b84b1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions umu/umu_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
from Xlib.protocol.rq import Event
from Xlib.xobject.drawable import Window

from umu import __version__
from umu.umu_consts import (
PR_SET_CHILD_SUBREAPER,
PROTON_VERBS,
Expand Down Expand Up @@ -725,6 +726,10 @@ def main() -> int: # noqa: D103
console_handler.setFormatter(CustomFormatter(DEBUG))
log.addHandler(console_handler)
log.setLevel(level=DEBUG)
for key, val in os.environ.items():
log.debug("%s=%s", key, val)

log.console(f"umu-launcher version {__version__} ({sys.version})")

with ThreadPoolExecutor() as thread_pool:
try:
Expand Down

0 comments on commit a6b84b1

Please sign in to comment.