Files
AareDAQ/src/aare/gui/constants.py
T
perl_d 3ec2bc011b
Build and Publish / test (pull_request) Successful in 2m16s
Build and Publish / test (pull_request_target) Successful in 2m7s
Build and Publish / build (pull_request) Successful in 19s
Build and Publish / test (push) Successful in 2m28s
Build and Publish / build (pull_request_target) Successful in 19s
Build and Publish / Build and Deploy Docs (pull_request) Successful in 38s
Build and Publish / build (push) Successful in 18s
Build and Publish / Build and Deploy Docs (pull_request_target) Successful in 33s
Build and Publish / Build and Deploy Docs (push) Successful in 33s
feat: add hostname+user to gui logs
2026-07-06 16:27:08 +02:00

11 lines
248 B
Python

import getpass
import socket
def _try_clean_hostname(raw_name: str) -> str:
return raw_name.removesuffix(".psi.ch")
CLEAN_HOSTNAME = _try_clean_hostname(socket.gethostname())
LOGGER_NAME = f"AareGUI: {CLEAN_HOSTNAME} - {getpass.getuser()}"