mschlenstedt / Loxberry

Current stable Branch is: *** Please see Releases *** Current developer Branch is: *** master ***
Apache License 2.0
77 stars 27 forks source link

Logging issue (filename not found) #1314

Open Liver64 opened 2 years ago

Liver64 commented 2 years ago

For some reasons LB throw following error:

PHP Notice: Undefined index: filename in /opt/loxberry/libs/phplib/loxberr y_log.php on line 118 Notice: Undefined index: filename in /opt/loxberry/libs/phplib/loxberry_log.php on line 118

13.02.2022 09:54:07 TASK STARTED Check Battery state 09:54:07.965 LoxBerry Version 2.2.1.2 ( is_raspberry.cfg ) 09:54:07.965 Loglevel: 0 check finished 13.02.2022 09:54:07 TASK FINISHED Usage: $params = [ "name" => "Cronjobs", "filename" => "$lbplogdir/sonos.log", "append" => 1, "addtime" => 1 ]; $log = LBLog::newLog($params); LOGSTART("Check Battery state"); This happens randomly on 2 diff. LB', the requested log file to append is already there. PHP file stored in bin folder Script execution then fails
mschlenstedt commented 2 years ago

Ist das noch aktuell?

christianTF commented 2 years ago

Das sind glaub ich PHP-Warnings im Falle von append, wenn der Filename noch nicht in der DB steht. Ist keine Fehlersituation (handhabt die Lib richtig), aber die Warnung sollte raus. Ist mein Thema für >=3.0