add resource_drift logtype

This commit is contained in:
Lauren 2023-04-24 15:08:33 -04:00
parent d47d475a03
commit 50c3f53595

View File

@ -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)