From 64756203aca9383f2efa946620f65638e69e5bfb Mon Sep 17 00:00:00 2001 From: Lukas Vogel Date: Fri, 4 Jan 2019 14:49:46 +0100 Subject: [PATCH] Re-add required log statement --- go/path_srv/internal/handlers/segreq.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/go/path_srv/internal/handlers/segreq.go b/go/path_srv/internal/handlers/segreq.go index e9dad3dc1e..ed82c4242c 100644 --- a/go/path_srv/internal/handlers/segreq.go +++ b/go/path_srv/internal/handlers/segreq.go @@ -32,6 +32,7 @@ import ( "github.com/scionproto/scion/go/lib/revcache" "github.com/scionproto/scion/go/lib/scrypto" "github.com/scionproto/scion/go/lib/scrypto/trc" + "github.com/scionproto/scion/go/lib/snet" "github.com/scionproto/scion/go/path_srv/internal/segutil" "github.com/scionproto/scion/go/proto" ) @@ -125,6 +126,10 @@ func (h *segReqHandler) fetchAndSaveSegs(ctx context.Context, msger infra.Messen logger := log.FromCtx(ctx) queryTime := time.Now() r := &path_mgmt.SegReq{RawSrcIA: src.IAInt(), RawDstIA: dst.IAInt()} + // The logging below is used for acceptance testing do not delete! + if snetAddr, ok := cPSAddr.(*snet.Addr); ok { + logger.Trace("[segReqHandler] Sending segment request", "NextHop", snetAddr.NextHop) + } segs, err := h.getSegsFromNetwork(ctx, r, cPSAddr, messenger.NextId()) if err != nil { return err