Skip to content

Commit

Permalink
e2e: Improve logging for channel operations
Browse files Browse the repository at this point in the history
- Log also channel namespace
- Log debug logs (already exists, not found) in DEBUG level

Signed-off-by: Nir Soffer <[email protected]>
  • Loading branch information
nirs committed Jan 29, 2025
1 parent 5ddaee0 commit c063aab
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions e2e/util/channel.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ func createChannel() error {
return err
}

Ctx.Log.Infof("Channel %q already exists", GetChannelName())
Ctx.Log.Debugf("Channel \"%s/%s\" already exists", GetChannelNamespace(), GetChannelName())
} else {
Ctx.Log.Infof("Created channel %q", GetChannelName())
Ctx.Log.Infof("Created channel \"%s/%s\"", GetChannelNamespace(), GetChannelName())
}

return nil
Expand All @@ -70,9 +70,9 @@ func deleteChannel() error {
return err
}

Ctx.Log.Infof("Channel %q not found", GetChannelName())
Ctx.Log.Debugf("Channel \"%s/%s\" not found", GetChannelNamespace(), GetChannelName())
} else {
Ctx.Log.Infof("Channel %q is deleted", GetChannelName())
Ctx.Log.Infof("Channel \"%s/%s\" is deleted", GetChannelNamespace(), GetChannelName())
}

return nil
Expand Down

0 comments on commit c063aab

Please sign in to comment.