Skip to content

Commit 1eeeeb7

Browse files
authored
Only print pointer value for remove video stream log (viamrobotics#4836)
1 parent 8609a0c commit 1eeeeb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

robot/web/stream/server.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ func (server *Server) RemoveStream(ctx context.Context, req *streampb.RemoveStre
289289
ctx, span := trace.StartSpan(ctx, "stream::server::RemoveStream")
290290
defer span.End()
291291
pc, ok := rpc.ContextPeerConnection(ctx)
292-
server.logger.Infow("Removing video stream", "name", req.Name, "peerConn", pc)
292+
server.logger.Infow("Removing video stream", "name", req.Name, "peerConn", fmt.Sprintf("%p", pc))
293293
if !ok {
294294
return nil, errors.New("can only remove a stream over a WebRTC based connection")
295295
}

0 commit comments

Comments
 (0)