From 1576cb669ef8c0e1fbba338dcdb41607d91c9579 Mon Sep 17 00:00:00 2001 From: Matthew Stratford Date: Thu, 27 May 2021 00:23:49 +0100 Subject: [PATCH] Only set debug player logging on beta builds. --- player.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/player.py b/player.py index 7f534a6..3f76b9d 100644 --- a/player.py +++ b/player.py @@ -40,6 +40,7 @@ from helpers.state_manager import StateManager from helpers.logging_manager import LoggingManager from baps_types.plan import PlanItem from baps_types.marker import Marker +import package # TODO ENUM VALID_MESSAGE_SOURCES = ["WEBSOCKET", "UI", "CONTROLLER", "TEST", "ALL"] @@ -849,7 +850,7 @@ class Player: self.running = True self.out_q = out_q - self.logger = LoggingManager("Player" + str(channel), True) + self.logger = LoggingManager("Player" + str(channel), debug=package.build_beta) self.api = MyRadioAPI(self.logger, server_state)