Only set debug player logging on beta builds.

This commit is contained in:
Matthew Stratford 2021-05-27 00:23:49 +01:00
parent da93caa390
commit 1576cb669e

View file

@ -40,6 +40,7 @@ from helpers.state_manager import StateManager
from helpers.logging_manager import LoggingManager from helpers.logging_manager import LoggingManager
from baps_types.plan import PlanItem from baps_types.plan import PlanItem
from baps_types.marker import Marker from baps_types.marker import Marker
import package
# TODO ENUM # TODO ENUM
VALID_MESSAGE_SOURCES = ["WEBSOCKET", "UI", "CONTROLLER", "TEST", "ALL"] VALID_MESSAGE_SOURCES = ["WEBSOCKET", "UI", "CONTROLLER", "TEST", "ALL"]
@ -849,7 +850,7 @@ class Player:
self.running = True self.running = True
self.out_q = out_q 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) self.api = MyRadioAPI(self.logger, server_state)