Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-add required log statement #2294

Merged
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
5 changes: 5 additions & 0 deletions go/path_srv/internal/handlers/segreq.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down Expand Up @@ -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
Expand Down