Skip to content

Commit

Permalink
Merge pull request #1071 from France-ioi/logPropagationEndpointTime
Browse files Browse the repository at this point in the history
Log propagation endpoint call time.
  • Loading branch information
smadbe authored May 10, 2024
2 parents ec53a8f + 36e4016 commit 596ca2a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/service/propagation.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ func SchedulePropagation(store *database.DataStore, endpoint string, types []str
client := http.Client{
Timeout: PropagationEndpointTimeout,
}

callTime := time.Now()
response, err := client.Get(endpoint + "?types=" + strings.Join(types, ","))
logging.Infof("Propagation endpoint called: %v, types=%v, duration=%v", endpoint, types, time.Since(callTime))

if err != nil {
logging.Errorf("Propagation endpoint error: %v", err)

Expand Down

0 comments on commit 596ca2a

Please sign in to comment.