Skip to content

Commit

Permalink
Add log output
Browse files Browse the repository at this point in the history
  • Loading branch information
chez-shanpu committed Jul 24, 2021
1 parent b9f2ea6 commit bce7f92
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/appagent/appagent.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package appagent
import (
"context"
"fmt"
"log"
"time"

"github.com/RyanCarrier/dijkstra"
Expand Down Expand Up @@ -72,6 +73,7 @@ func MakeGraph(nodesInfo *api.NodesInfo, metricsType string, require float64) (*
return nil, fmt.Errorf("metrics option is wrong (metrics=%s)", metricsType)
}
for _, ns := range node.NextSids {
log.Printf("sid: %s, next_sid: %s, cost: %d \n", node.SID, ns, cost)
err := graph.AddMappedArc(node.SID, ns, cost)
if err != nil {
return nil, fmt.Errorf("graph.AddMappedArc was failed: %v", err)
Expand Down

0 comments on commit bce7f92

Please sign in to comment.