Skip to content

Commit

Permalink
Establish debuglog session var
Browse files Browse the repository at this point in the history
  • Loading branch information
moodeaudio committed Mar 9, 2022
1 parent 908531a commit 9cd1f20
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion www/command/worker.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9cd1f20

Please sign in to comment.