diff --git a/lib/util/logger.js b/lib/util/logger.js index 33e999be3..361fef2e0 100644 --- a/lib/util/logger.js +++ b/lib/util/logger.js @@ -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)); }