Skip to content

Commit

Permalink
Fix rare crash when watching build
Browse files Browse the repository at this point in the history
  • Loading branch information
ipmb committed Feb 28, 2022
1 parent fc48e62 commit 39b4eba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,9 @@ func watchBuildPhase(a *app.App, buildStatus *app.BuildStatus) error {
}
build := builds.Builds[0]
if *build.CurrentPhase == "BUILD" {
if strings.HasPrefix(buildStatus.Build.Logs, "s3://") {
return S3Log(a.Session, buildStatus.Build.Logs)
}
if !buildLogTailing {
buildLogTailing = true
go StreamEvents(a.Session, buildStatus.Build.Logs, aws.String("build"), stopTailing)
Expand Down

0 comments on commit 39b4eba

Please sign in to comment.