From c207e0b0b3788b5c00199f62c19fb98bdae29982 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Papp?= Date: Tue, 5 Aug 2025 10:12:55 +0200 Subject: [PATCH] Fix logging --- client/internal/peer/handshaker.go | 4 ++-- client/internal/peer/worker_ice.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/client/internal/peer/handshaker.go b/client/internal/peer/handshaker.go index c5bd997f7..03d1803e7 100644 --- a/client/internal/peer/handshaker.go +++ b/client/internal/peer/handshaker.go @@ -144,14 +144,14 @@ func (h *Handshaker) sendOffer() error { } offer := h.buildOfferAnswer() - h.log.Infof("sending offer with serial: %d", *offer.SessionID) + h.log.Infof("sending offer with serial: %s", offer.SessionIDString()) return h.signaler.SignalOffer(offer, h.config.Key) } func (h *Handshaker) sendAnswer() error { answer := h.buildOfferAnswer() - h.log.Infof("sending answer with serial: %d", *answer.SessionID) + h.log.Infof("sending answer with serial: %s", answer.SessionIDString()) return h.signaler.SignalAnswer(answer, h.config.Key) } diff --git a/client/internal/peer/worker_ice.go b/client/internal/peer/worker_ice.go index 0614c5869..ef4354795 100644 --- a/client/internal/peer/worker_ice.go +++ b/client/internal/peer/worker_ice.go @@ -90,7 +90,7 @@ func NewWorkerICE(ctx context.Context, log *log.Entry, config ConnConfig, conn * } func (w *WorkerICE) OnNewOffer(remoteOfferAnswer *OfferAnswer) { - w.log.Debugf("OnNewOffer for ICE, serial: %d", remoteOfferAnswer.SessionIDString()) + w.log.Debugf("OnNewOffer for ICE, serial: %s", remoteOfferAnswer.SessionIDString()) w.muxAgent.Lock() if w.agentConnecting { @@ -261,7 +261,7 @@ func (w *WorkerICE) connect(ctx context.Context, agent *ice.Agent, remoteOfferAn } w.log.Debugf("on ICE conn is ready to use") - w.log.Infof("connection succeeded with offer session: %d", remoteOfferAnswer.SessionIDString()) + w.log.Infof("connection succeeded with offer session: %s", remoteOfferAnswer.SessionIDString()) w.muxAgent.Lock() w.agentConnecting = false w.lastSuccess = time.Now()