Skip to content

Commit

Permalink
Merge pull request #1 from tmwllc/master
Browse files Browse the repository at this point in the history
Added ability to pass a logger into telegrafjs.
  • Loading branch information
oifland committed Oct 16, 2017
2 parents b0bf617 + f34ead4 commit c13a5fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion handlers/telegrafUdpHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ module.exports = function (options) {
return (messages) => {
var udpClient = new telegraf.TelegrafUDPClient({
host: options.host,
port: options.port
port: options.port,
logger: options.logger
})
return udpClient.connect()
.then(function () {
Expand Down

0 comments on commit c13a5fe

Please sign in to comment.