From 802a99749cacc8e513153f0ceb7d8d605dc0bcfe Mon Sep 17 00:00:00 2001 From: Michael Schurter Date: Mon, 17 Jul 2017 11:07:06 -0700 Subject: [PATCH] Fix log level --- client/alloc_runner.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/alloc_runner.go b/client/alloc_runner.go index d5a749087..dd9becd5b 100644 --- a/client/alloc_runner.go +++ b/client/alloc_runner.go @@ -696,7 +696,7 @@ func (r *AllocRunner) Run() { r.allocDirLock.Lock() // Build allocation directory (idempotent) if err := r.allocDir.Build(); err != nil { - r.logger.Printf("[WARN] client: failed to build task directories: %v", err) + r.logger.Printf("[ERR] client: failed to build task directories: %v", err) r.setStatus(structs.AllocClientStatusFailed, fmt.Sprintf("failed to build task dirs for '%s'", alloc.TaskGroup)) r.allocDirLock.Unlock() return @@ -704,10 +704,10 @@ func (r *AllocRunner) Run() { if r.otherAllocDir != nil { if err := r.allocDir.Move(r.otherAllocDir, tg.Tasks); err != nil { - r.logger.Printf("[ERROR] client: failed to move alloc dir into alloc %q: %v", r.alloc.ID, err) + r.logger.Printf("[ERR] client: failed to move alloc dir into alloc %q: %v", r.alloc.ID, err) } if err := r.otherAllocDir.Destroy(); err != nil { - r.logger.Printf("[ERROR] client: error destroying allocdir %v: %v", r.otherAllocDir.AllocDir, err) + r.logger.Printf("[ERR] client: error destroying allocdir %v: %v", r.otherAllocDir.AllocDir, err) } } r.allocDirLock.Unlock()