diff --git a/xpra/client/mixins/logging.py b/xpra/client/mixins/logging.py index 7194b427a7..09d1ae8ab2 100644 --- a/xpra/client/mixins/logging.py +++ b/xpra/client/mixins/logging.py @@ -13,7 +13,7 @@ from xpra.util.str_fn import csv, repr_ellipsized from xpra.client.base.stub_client_mixin import StubClientMixin from xpra.log import Logger, set_global_logging_handler -from xpra.net.common import PacketType +from xpra.net.common import PacketType, LOG_PACKET_TYPE from xpra.net.compression import Compressed log = Logger("client") @@ -63,6 +63,10 @@ def parse_server_capabilities(self, c: typedict) -> bool: log.warn("Warning: cannot enable remote logging") log.warn(" because debug logging is enabled for: %s", csv(conflict)) return True + if LOG_PACKET_TYPE: + log.warn("Warning: cannot enable remote logging") + log.warn(f" because {LOG_PACKET_TYPE=}") + return True log.info("enabled remote logging") if not self.log_both: log.info(" see server log file for further output")