mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-25 16:31:10 -06:00
core: demote early exit log from ERROR -> DEBUG
This commit is contained in:
parent
8472c7d59f
commit
6af79168db
@ -52,7 +52,11 @@ func EvalRaw(n EvalNode, ctx EvalContext) (interface{}, error) {
|
||||
log.Printf("[DEBUG] %s: eval: %T", path, n)
|
||||
output, err := n.Eval(ctx)
|
||||
if err != nil {
|
||||
log.Printf("[ERROR] %s: eval: %T, err: %s", path, n, err)
|
||||
if _, ok := err.(EvalEarlyExitError); ok {
|
||||
log.Printf("[DEBUG] %s: eval: %T, err: %s", path, n, err)
|
||||
} else {
|
||||
log.Printf("[ERROR] %s: eval: %T, err: %s", path, n, err)
|
||||
}
|
||||
}
|
||||
|
||||
return output, err
|
||||
|
Loading…
Reference in New Issue
Block a user