Skip to content

Commit

Permalink
Debug commit
Browse files Browse the repository at this point in the history
Signed-off-by: Lakshman <Lakshman@localhost>
  • Loading branch information
Lakshman authored and Lakshman committed Jul 29, 2024
1 parent ea7b87d commit 2d89ecf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tools/invoker/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,12 +192,16 @@ func SayHello(address, workflowID string) {
time.Now().UTC(),
),
})
log.Debugf("In SayHello after c.SayHello\n")
if err != nil {
log.Warnf("Failed to invoke %v, err=%v", address, err)
} else {
log.Debugf("In the else block")
if *funcDurEnable {
log.Debugf("In the if funcdur block")
words := strings.Fields(response.Message)
lastWord := words[len(words)-1]
log.Debugf("Last word: %v\n", lastWord)
duration, err := strconv.ParseInt(lastWord, 10, 64)
if err == nil {
log.Debugf("Invoked %v in %v usec\n. Response: %v\n", address, duration, response.Message)
Expand All @@ -207,6 +211,7 @@ func SayHello(address, workflowID string) {
log.Debugf("In SayHello before unlock after append\n")
profSlice.Unlock()
}
log.Debugf("In the if funcdur block after inner if\n")
}
atomic.AddInt64(&completed, 1)
}
Expand Down

0 comments on commit 2d89ecf

Please sign in to comment.