Page 1 of 1

Dzvents json.result tuncated in log

Posted: Monday 06 April 2020 21:02
by fr3sh
Hi I have simple one scenario but I dont know why my variable is truncated in the log
Its look like loging is on specific length

I wanted to list my all zvawe device ant when I look at the log the log is truncated. I have 12 devices but log show few of them

Simple script

Code: Select all

 
 
   domoticz.openURL({
                    url = 'http://192.168.88.240:8080/json.htm?type=openzwavenodes&idx=2',
                    method = 'GET',
                    callback = 'data'
                })
        end
        
        
        if (item.isHTTPResponse and item.ok) then
           
            if (item.trigger == 'data') then
                    
            local results = item.json.result
             domoticz.log(item.json.result, domoticz.LOG_INFO)


in logs you can see its truncated
000254_2020-04-06 21_00_26-Domoticz.jpg
000254_2020-04-06 21_00_26-Domoticz.jpg (317.28 KiB) Viewed 715 times

Re: Dzvents json.result tuncated in log  [Solved]

Posted: Monday 06 April 2020 21:31
by waaren
fr3sh wrote: Monday 06 April 2020 21:02 Hi I have simple one scenario but I dont know why my variable is truncated in the log
Its look like loging is on specific length
If you log to an os file you will see the complete log.

you can set that in /etc/init.d/domoticz.sh

with an editor of choice

Code: Select all

DAEMON_ARGS="$DAEMON_ARGS -log /var/log/domoticz.log" # or any other OS file 
DAEMON_ARGS="$DAEMON_ARGS -loglevel  normal,status,error

Code: Select all

sudo systemctl daemon-reload
sudo service domoticz stop
sudo service domoticz start
sudo tail -f  /var/log/domoticz.log

Re: Dzvents json.result tuncated in log

Posted: Monday 06 April 2020 21:37
by fr3sh
waaren wrote: Monday 06 April 2020 21:31
fr3sh wrote: Monday 06 April 2020 21:02 Hi I have simple one scenario but I dont know why my variable is truncated in the log
Its look like loging is on specific length
If you log to an os file you will see the complete log.

you can set that in /etc/init.d/domoticz.sh

with an editor of choice

Code: Select all

DAEMON_ARGS="$DAEMON_ARGS -log /var/log/domoticz.log" # or any other OS file 
DAEMON_ARGS="$DAEMON_ARGS -loglevel  normal,status,error

Code: Select all

sudo systemctl daemon-reload
sudo service domoticz stop
sudo service domoticz start
sudo tail -f  /var/log/domoticz.log
It's little complicated then that because I have domoticz on docker ;)
But tell me the SETUP->LOG is truncating the log?

Re: Dzvents json.result tuncated in log

Posted: Monday 06 April 2020 21:47
by fr3sh
I see more logs on filesystem thank's waaren