Skip to content

Commit e175054

Browse files
committed
feat: log discovery queries with client address and service details
1 parent 390c04e commit e175054

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

net/broadcast/server/server.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ func ListenAndServe(ctx context.Context, cfg Config) error {
7979
continue
8080
}
8181

82+
cfg.logf("discovery query from %s for service=%s, replying with %s:%d", clientAddr, msg.Service, advertiseIP, cfg.servicePort())
83+
8284
clonedMeta := cloneMeta(cfg.Meta)
8385
if ifaceName != "" {
8486
if clonedMeta == nil {

0 commit comments

Comments
 (0)