Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions pkg/sip/media_port.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ func (c *udpConn) SetDst(addr netip.AddrPort) {
if addr.IsValid() {
prev := c.dst.Swap(&addr)
if prev == nil || !prev.IsValid() {
c.log.Infow("setting media destination", "addr", addr.String())
c.log.Debugw("setting media destination", "addr", addr.String())
} else if *prev != addr {
changeCount := c.dstChangeCount.Add(1)
now := time.Now().UnixNano()
Expand All @@ -263,7 +263,7 @@ func (c *udpConn) Read(b []byte) (n int, err error) {
}
prev := c.src.Swap(&addr)
if prev == nil || !prev.IsValid() {
c.log.Infow("setting media source", "addr", addr.String())
c.log.Debugw("setting media source", "addr", addr.String())
} else if *prev != addr {
changeCount := c.srcChangeCount.Add(1)
now := time.Now().UnixNano()
Expand Down Expand Up @@ -318,7 +318,7 @@ func (c *udpConn) discardLoop() error {
packetsDiscarded++
}
if err != nil || packetsDiscarded > 0 {
c.log.Infow("Stopped discarding packets", "packetsDiscarded", packetsDiscarded, "error", err)
c.log.Debugw("Stopped discarding packets", "packetsDiscarded", packetsDiscarded, "error", err)
}
err = c.UDPConn.SetReadDeadline(time.Time{}) // clear deadline
if err != nil && !errors.Is(err, net.ErrClosed) {
Expand Down Expand Up @@ -813,7 +813,7 @@ func (p *MediaPort) rtpLoop(tid traceid.ID, sess rtp.Session) {
p.stats.Streams.Add(1)
p.mediaReceived.Break()
log := p.log.WithValues("ssrc", ssrc)
log.Infow("accepting RTP stream")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one helped us find both these issues out, but once we handle the second one as well this can be a number, no need to log every time.

log.Debugw("accepting RTP stream")
go p.rtpReadLoop(tid, log, r)
}
}
Expand Down
Loading