Debug log in plan apply
This commit is contained in:
parent
221caf64ed
commit
b72b3ce190
|
@ -2,6 +2,7 @@ package nomad
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"log"
|
||||
"runtime"
|
||||
"time"
|
||||
|
||||
|
@ -312,6 +313,9 @@ func evaluatePlan(pool *EvaluatePool, snap *state.StateSnapshot, plan *structs.P
|
|||
mErr.Errors = append(mErr.Errors, err)
|
||||
}
|
||||
}
|
||||
|
||||
// XXX: Remove! Only for debugging
|
||||
log.Printf("[DEBUG] plan_apply: eval %q; partial commit %v; allocs %d; updates %d", plan.EvalID, partialCommit, len(result.NodeAllocation), len(result.NodeUpdate))
|
||||
return result, mErr.ErrorOrNil()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue