Skip to content

Commit

Permalink
Always convert syslog type to string. #3725
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenkk committed Jun 12, 2020
1 parent cecedbd commit c6e7616
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/util/logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

Expand Down

0 comments on commit c6e7616

Please sign in to comment.