Debug log in plan apply

This commit is contained in:
Alex Dadgar 2016-02-22 16:12:16 -08:00
parent 221caf64ed
commit b72b3ce190
1 changed files with 4 additions and 0 deletions

View File

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