Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Commit

Permalink
additional logging (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshblum authored Dec 20, 2022
1 parent 3739646 commit 50771d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion update/s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,7 @@ func (c *Client) copyFromReleases(platform Platform, bucketName string) (release
// CurrentUpdate returns current update for a platform
func (c *Client) CurrentUpdate(bucketName string, channel string, platformName string, env string) (currentUpdate *Update, path string, err error) {
path = updateJSONName(channel, platformName, env)
log.Printf("Fetching current update at %s", path)
resp, err := c.svc.GetObject(&s3.GetObjectInput{
Bucket: aws.String(bucketName),
Key: aws.String(path),
Expand Down Expand Up @@ -544,7 +545,7 @@ func (c *Client) promoteAReleaseToProd(releaseName string, bucketName string, pl

// PromoteRelease promotes a release to a channel
func (c *Client) PromoteRelease(bucketName string, delay time.Duration, beforeHourEastern int, toChannel string, platform Platform, env string, allowDowngrade bool, releaseName string) (*Release, error) {
log.Printf("Finding release to promote to %q (%s delay)", toChannel, delay)
log.Printf("Finding release to promote to %q (%s delay) in env %s", toChannel, delay, env)
var release *Release
var err error

Expand Down

0 comments on commit 50771d9

Please sign in to comment.