mirror of
https://git.steelants.cz/SH/PHP_SMART_HOME_V3.git
synced 2026-10-11 17:54:34 +00:00
Some modificatio and repair
This commit is contained in:
1 parent
fc3d3d5930
commit
ca5b221bc1
5 files changed
+27
-21
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user