Skip to content

Commit 9f77d71

Browse files
committed
experiment: Add trace logging for WebRTC offer and answer
1 parent 4bc8994 commit 9f77d71

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

peer/conn.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ func (c *Conn) negotiate() {
288288
_ = c.CloseWithError(xerrors.Errorf("set local description: %w", err))
289289
return
290290
}
291-
c.opts.Logger.Debug(context.Background(), "sending offer")
291+
c.opts.Logger.Debug(context.Background(), "sending offer", slog.F("offer", offer))
292292
select {
293293
case <-c.closed:
294294
return
@@ -327,7 +327,7 @@ func (c *Conn) negotiate() {
327327
_ = c.CloseWithError(xerrors.Errorf("set local description: %w", err))
328328
return
329329
}
330-
c.opts.Logger.Debug(context.Background(), "sending answer")
330+
c.opts.Logger.Debug(context.Background(), "sending answer", slog.F("answer", answer))
331331
select {
332332
case <-c.closed:
333333
return

0 commit comments

Comments
 (0)