From 495fae2ced2f1d2a66d86c85a039f524b8bf338b Mon Sep 17 00:00:00 2001
From: Luca Moser <moser.luca@gmail.com>
Date: Sat, 16 Nov 2019 20:24:22 +0100
Subject: [PATCH] fixes args in formatted prints

---
 plugins/analysis/server/plugin.go  | 2 +-
 plugins/gracefulshutdown/plugin.go | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/plugins/analysis/server/plugin.go b/plugins/analysis/server/plugin.go
index 517a3df1..7c5863d6 100644
--- a/plugins/analysis/server/plugin.go
+++ b/plugins/analysis/server/plugin.go
@@ -27,7 +27,7 @@ func Configure(plugin *node.Plugin) {
 
 	server.Events.Connect.Attach(events.NewClosure(HandleConnection))
 	server.Events.Error.Attach(events.NewClosure(func(err error) {
-		log.Error("error in server: %s", err.Error())
+		log.Errorf("error in server: %s", err.Error())
 	}))
 	server.Events.Start.Attach(events.NewClosure(func() {
 		log.Infof("Starting Server (port %d) ... done", parameter.NodeConfig.GetInt(CFG_SERVER_PORT))
diff --git a/plugins/gracefulshutdown/plugin.go b/plugins/gracefulshutdown/plugin.go
index d24c61b2..15d5cbe6 100644
--- a/plugins/gracefulshutdown/plugin.go
+++ b/plugins/gracefulshutdown/plugin.go
@@ -1,7 +1,6 @@
 package gracefulshutdown
 
 import (
-	"github.com/iotaledger/hive.go/logger"
 	"os"
 	"os/signal"
 	"strings"
@@ -9,6 +8,7 @@ import (
 	"time"
 
 	"github.com/iotaledger/hive.go/daemon"
+	"github.com/iotaledger/hive.go/logger"
 	"github.com/iotaledger/hive.go/node"
 )
 
@@ -38,7 +38,7 @@ var PLUGIN = node.NewPlugin("Graceful Shutdown", node.Enabled, func(plugin *node
 					if len(runningBackgroundWorkers) >= 1 {
 						processList = "(" + strings.Join(runningBackgroundWorkers, ", ") + ") "
 					}
-					log.Warningf("Received shutdown request - waiting (max %d seconds) to finish processing ...", WAIT_TO_KILL_TIME_IN_SECONDS-int(secondsSinceStart), processList)
+					log.Warningf("Received shutdown request - waiting (max %d seconds) to finish processing %s...", WAIT_TO_KILL_TIME_IN_SECONDS-int(secondsSinceStart), processList)
 				} else {
 					log.Error("Background processes did not terminate in time! Forcing shutdown ...")
 					os.Exit(1)
-- 
GitLab