Page 1 of 1

[SOLVED] no longer logging after 2025.1 install

Posted: Monday 12 May 2025 22:22
by hestia
Hi,
I've installed 2025.1
Version: 2025.1
Build Hash: 89d5c900d
Compile Date: 2025-05-05 09:02:49
dzVents Version: 3.1.8
and I've almost no longer log for dzVents script, even with the settings as Debug (everything).

I've tried the script template Logging

Code: Select all

return {
	on = {
		devices = {
			203
		}
	},
	logging = {
		marker = 'log_script',
		level = domoticz.LOG_DEBUG
	},
	execute = function(domoticz, device)
	    domoticz.log('none log line!')
		domoticz.log('INFO log line!', domoticz.LOG_INFO)
		domoticz.log('STATUS log line!', domoticz.LOG_STATUS)
		domoticz.log('ERROR log line!', domoticz.LOG_ERROR)
		domoticz.log('DEBUG log line!', domoticz.LOG_DEBUG)
		domoticz.log('FORCE log line!', domoticz.LOG_FORCE)
	end
}
with this return only

Code: Select all

2025-05-12 22:18:56.008 Status: dzVents: log_script: STATUS log line!
2025-05-12 22:18:56.009 Error: dzVents: log_script: ERROR log line!
An issue during the install?
A change as I saw ?
Version 2024.5 (July 7th 2024)
- Implemented: Currency Symbol in Location Settings
- Implemented: dzVents, Added historical data helper 'med' to calculate the median value
- Implemented: dzVents, Improved logging

Re: no longer logging after 2025.1 install

Posted: Tuesday 13 May 2025 10:05
by waltervl
What is your dVents log level in menu Setup - settings, tab other?

Re: no longer logging after 2025.1 install

Posted: Tuesday 13 May 2025 11:03
by hestia
even with the settings as Debug (everything)
and it was ok before the upgrade

Re: no longer logging after 2025.1 install

Posted: Tuesday 13 May 2025 17:21
by waltervl
I have tested the example script this morning and have no issues. I see all the log lines.

But did you filter correctly? I see more lines also when the script starts and stops. In the log search box type log_
It should show all the logging from the log test script.

Re: no longer logging after 2025.1 install

Posted: Wednesday 14 May 2025 9:20
by hestia
Thanks for this reply.
Other testing:
I've changed the Settings to test all the possible values and the results are the same for all the Settings
2 log lines only
Settings.png
Settings.png (29.27 KiB) Viewed 528 times
Log.png
Log.png (23.6 KiB) Viewed 528 times
but no debug info and no log for the other values, perhaps the STATUS log in the only one working now ?

What do you have in your /etc/init.d/domoticz.sh
I've not changed mine since 2023

Code: Select all

DAEMON_ARGS="$DAEMON_ARGS -loglevel status,error"

Re: no longer logging after 2025.1 install

Posted: Wednesday 14 May 2025 17:21
by waltervl
I have the default outcommented value for syslog:
#DAEMON_ARGS="$DAEMON_ARGS -syslog"

Re: no longer logging after 2025.1 install

Posted: Wednesday 14 May 2025 18:11
by hestia
Thanks for your reply
I've commented this line

Code: Select all

DAEMON_ARGS="$DAEMON_ARGS -loglevel status,error"
and it's solved