diff --git a/internal/command/jsonformat/renderer.go b/internal/command/jsonformat/renderer.go index 676d6cad7d..ba47839a03 100644 --- a/internal/command/jsonformat/renderer.go +++ b/internal/command/jsonformat/renderer.go @@ -29,20 +29,21 @@ type JSONLog struct { } const ( - LogVersion JSONLogType = "version" + LogApplyComplete JSONLogType = "apply_complete" + LogApplyErrored JSONLogType = "apply_errored" + LogApplyStart JSONLogType = "apply_start" + LogChangeSummary JSONLogType = "change_summary" LogDiagnostic JSONLogType = "diagnostic" LogPlannedChange JSONLogType = "planned_change" - LogRefreshStart JSONLogType = "refresh_start" - LogRefreshComplete JSONLogType = "refresh_complete" - LogApplyStart JSONLogType = "apply_start" - LogApplyErrored JSONLogType = "apply_errored" - LogApplyComplete JSONLogType = "apply_complete" - LogChangeSummary JSONLogType = "change_summary" - LogProvisionStart JSONLogType = "provision_start" - LogProvisionProgress JSONLogType = "provision_progress" LogProvisionComplete JSONLogType = "provision_complete" LogProvisionErrored JSONLogType = "provision_errored" + LogProvisionProgress JSONLogType = "provision_progress" + LogProvisionStart JSONLogType = "provision_start" LogOutputs JSONLogType = "outputs" + LogRefreshComplete JSONLogType = "refresh_complete" + LogRefreshStart JSONLogType = "refresh_start" + LogResourceDrift JSONLogType = "resource_drift" + LogVersion JSONLogType = "version" ) type Renderer struct { @@ -101,7 +102,7 @@ func (r Renderer) RenderLog(log *JSONLog) error { // We won't display these types of logs return nil - case LogApplyStart, LogApplyComplete, LogRefreshStart, LogProvisionStart: + case LogApplyStart, LogApplyComplete, LogRefreshStart, LogProvisionStart, LogResourceDrift: msg := fmt.Sprintf(r.Colorize.Color("[bold]%s[reset]"), log.Message) r.Streams.Println(msg)