diff --git a/src/cmd/worker/main.go b/src/cmd/worker/main.go index 5aed168..07e9858 100644 --- a/src/cmd/worker/main.go +++ b/src/cmd/worker/main.go @@ -111,7 +111,7 @@ func main() { for d := range msgs { msg, err := amqp.Deserialize(d.Body) if err != nil { - logger.Log("json error:", err) + logger.Log("json error: %v", err) d.Reject(false) // FIXME: how to handle erros in queue...???? continue } @@ -128,10 +128,10 @@ func main() { // FIXME CHECK if basket exists _, err := basket.Get(basketID) if err != nil { - logger.Log("Basket#%s not found. Creating...", basketID) + logger.Log("Basket#:%s not found. Creating...", basketID) err := basket.Create(basketID) if err != nil { - logger.Log("Creating basket error: %s", err) + logger.Log("Creating basket error: %v", err) d.Reject(false) continue }