Skip to content

Commit

Permalink
Fix spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
mehulkar committed Jun 2, 2023
1 parent 698fde6 commit ba62377
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cli/internal/runcache/runcache.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,18 +164,18 @@ func (tc *TaskCache) RestoreOutputs(ctx context.Context, prefixedUI *cli.Prefixe
// This isn't the cleanest way to updat ethe log message, so we should revisit during Rust port.
moreContext := ""
if !hasChangedOutputs {
moreContext = "(outputs already on disk)"
moreContext = " (outputs already on disk)"
}

switch tc.taskOutputMode {
// When only showing new task output, cached output should only show the computed hash
case util.NewTaskOutput:
fallthrough
case util.HashTaskOutput:
prefixedUI.Info(fmt.Sprintf("cache hit %s, suppressing logs %s", moreContext, ui.Dim(tc.hash)))
prefixedUI.Info(fmt.Sprintf("cache hit%s, suppressing logs %s", moreContext, ui.Dim(tc.hash)))
case util.FullTaskOutput:
progressLogger.Debug("log file", "path", tc.LogFileName)
prefixedUI.Info(fmt.Sprintf("cache hit %s, replaying logs %s", moreContext, ui.Dim(tc.hash)))
prefixedUI.Info(fmt.Sprintf("cache hit%s, replaying logs %s", moreContext, ui.Dim(tc.hash)))
tc.ReplayLogFile(prefixedUI, progressLogger)
case util.ErrorTaskOutput:
// The task succeeded, so we don't output anything in this case
Expand Down

0 comments on commit ba62377

Please sign in to comment.