Skip to content

Commit

Permalink
Fix log message for recordevents receiver (#7936)
Browse files Browse the repository at this point in the history
* Fix log message for recordevents receiver

* Improve log message for event-sender
  • Loading branch information
creydr authored May 22, 2024
1 parent 9c0f9cc commit 68920d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/lib/recordevents/receiver/reply.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func ReplyTransformerFunc(replyEventType string, replyEventSource string, replyE
outputEvent.SetType(replyEventType)
}
if replyEventData != "" {
logging.FromContext(ctx).Infof("Setting reply event data '%s'", replyAppendData)
logging.FromContext(ctx).Infof("Setting reply event data '%s'", replyEventData)
if err := outputEvent.SetData(cloudevents.ApplicationJSON, []byte(replyEventData)); err != nil {
logging.FromContext(ctx).Warn("Cannot set the event data")
}
Expand Down
4 changes: 2 additions & 2 deletions test/test_images/event-sender/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,9 @@ func main() {
log.Printf("send returned an error: %v\n", responseResult)
} else {
if responseEvent != nil {
log.Printf("Got response from %s\n%s\n%s\n", sink, responseResult, *responseEvent)
log.Printf("Got response from %q\nresult: %q\nresponse event: %q\n", sink, responseResult, *responseEvent)
} else {
log.Printf("Got response from %s\n%s\n", sink, responseResult)
log.Printf("Got response from %q\nresult: %q\n", sink, responseResult)
}

if responseSink != "" {
Expand Down

0 comments on commit 68920d2

Please sign in to comment.