svrooij / node-sonos-ts

:speaker: Sonos control library, use this library in your own appliction.
https://sonos-ts.svrooij.io/
MIT License
81 stars 18 forks source link

BUG: Starting EventListener shows template strings in logging #126

Closed hklages closed 3 years ago

hklages commented 3 years ago

What happened

uuid and service name are not displayed (see yellow part in screen shot)

What did you expect to happen

The data and not the template literals

How to reproduce it (minimal and precise)

Just subscribe to any event.

Debug logging

subscription

` sonos:eventlistener Listener endpoint: http://192.168.178.28:6329/sonos/{sonos-uuid}/{serviceName} +0ms | stdout

`

svrooij commented 3 years ago

This is by design, starting the EventListener isn't tied to a specific subscription. Because of this I deliberately added the { and } around it, in the logging. Hoping a developer seeing the logs would see it as template strings.