From c6e76165ff70baf692147c5f4f82b32a432be059 Mon Sep 17 00:00:00 2001 From: Koen Kanters Date: Fri, 12 Jun 2020 16:51:49 +0200 Subject: [PATCH] Always convert syslog type to string. https://github.com/Koenkk/zigbee2mqtt/issues/3725 --- lib/util/logger.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/util/logger.js b/lib/util/logger.js index 33e999be36..361fef2e06 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)); }