Pass logger to UDP listener

We were already passing it to the TCP and Unixgram listener, but
somehow left it out of the UDP listener setup.

Fixes #285.

Signed-off-by: Matthias Rampke <mr@soundcloud.com>
This commit is contained in:
Matthias Rampke 2020-01-13 09:55:07 +00:00
parent 20006621cc
commit fa2159f8e8
No known key found for this signature in database
GPG key ID: 2CDE413A9BD0A5BC

View file

@ -198,7 +198,7 @@ func main() {
}
}
ul := &StatsDUDPListener{conn: uconn, eventHandler: eventQueue}
ul := &StatsDUDPListener{conn: uconn, eventHandler: eventQueue, logger: logger}
go ul.Listen()
}