This commit is contained in:
Koen Kanters
2020-06-12 16:51:49 +02:00
parent cecedbd5f8
commit c6e76165ff
+1
View File
@@ -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));
}