From 9cd1f201de997fed0c7546fd8c80634d102ce077 Mon Sep 17 00:00:00 2001 From: Tim Curtis Date: Wed, 9 Mar 2022 17:22:32 -0500 Subject: [PATCH] Establish debuglog session var --- www/command/worker.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/www/command/worker.php b/www/command/worker.php index c8e833743..c923d440d 100755 --- a/www/command/worker.php +++ b/www/command/worker.php @@ -120,10 +120,15 @@ sysCmd('moodeutl -D card_error'); workerLog('worker: Session vacuumed'); -// Load cfg_system into session +// Load cfg_system and cfg_radio into session playerSession('open', '', ''); loadRadio(); workerLog('worker: Session loaded'); + +// Establish debuglog session var +if (!isset($_SESSION['debuglog'])) { + $_SESSION['debuglog'] = '0'; +} workerLog('worker: Debug logging (' . ($_SESSION['debuglog'] == '1' ? 'ON' : 'OFF') . ')'); // Reconfigure certain 3rd party installs