mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-10-15 10:39:56 +00:00
Always convert syslog type to string. https://github.com/Koenkk/zigbee2mqtt/issues/3725
This commit is contained in:
@@ -83,6 +83,7 @@ if (output.includes('file')) {
|
||||
if (output.includes('syslog')) {
|
||||
require('winston-syslog').Syslog;
|
||||
const options = {app_name: 'zigbee2mqtt', ...settings.get().advanced.log_syslog};
|
||||
if (options.hasOwnProperty('type')) options.type = options.type.toString();
|
||||
transportsToUse.push(new winston.transports.Syslog(options));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user