Skip to content

Commit 2df64d6

Browse files
committed
[core] Demote cleanup script failures to Support
OCTRL-983
1 parent c083fa3 commit 2df64d6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/environment/transition_deploy.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ func (t DeployTransition) do(env *Environment) (err error) {
9292
localErr = cmd.Run()
9393
if localErr != nil {
9494
log.WithField("partition", env.Id().String()).
95+
WithField("level", infologger.IL_Support).
9596
Warnf("cleanup script failed on %s : %s\n", flp, localErr.Error())
9697
scriptErrors = multierror.Append(scriptErrors, fmt.Errorf("cleanup unsuccessful on %s: %w", flp, localErr))
9798
} else {
@@ -197,6 +198,7 @@ func (t DeployTransition) do(env *Environment) (err error) {
197198
}
198199
if err != nil {
199200
log.WithField("partition", env.Id().String()).
201+
WithField("level", infologger.IL_Ops).
200202
Warnf("pre-deployment cleanup, %s", err.Error())
201203
err = nil // we don't want to fail the deployment because of pre-deploy cleanup issues
202204
}

0 commit comments

Comments
 (0)