Merge branch 'remastering' of https://git.steelants.cz/SImple-Home/PHP_SMART_HOME_V3 into remastering

This commit is contained in:
2020-09-07 11:06:05 +02:00
4 changed files with 22 additions and 21 deletions

View File

@@ -76,7 +76,7 @@ class EndpointsApi extends ApiController{
//Log Data Save
if (isset($obj['logs'])){
foreach ($deviceLogs as $log) {
foreach ($obj['logs'] as $log) {
$logManager = new LogManager('../logs/devices/'. date("Y-m-d").'.log');
$logManager->setLevel(LOGLEVEL);
$logManager->write("[Device Log Msg] Device_ID " . $deviceId . "->" . $log, LogRecordTypes::ERROR);