Blob Blame Raw
From 27ab1bc7a0ead8f5fb405122c78a085ab44616a7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Robert-Andr=C3=A9=20Mauchin?= <zebob.m@gmail.com>
Date: Fri, 17 May 2019 20:00:26 +0200
Subject: [PATCH] Use logging with formatting when argument is passed
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Robert-André Mauchin <zebob.m@gmail.com>
---
 api/v0/executor/executor.go   | 4 ++--
 api/v0/scheduler/scheduler.go | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/api/v0/executor/executor.go b/api/v0/executor/executor.go
index f2b0d62..1f1f92d 100644
--- a/api/v0/executor/executor.go
+++ b/api/v0/executor/executor.go
@@ -292,7 +292,7 @@ func (driver *MesosExecutorDriver) recoveryTimedOut(connection string) {
 	}
 	// ensure that connection ID's match otherwise we've been re-registered
 	if connection == driver.connection.String() {
-		log.Info("recovery timeout of %v exceeded; shutting down", driver.recoveryTimeout)
+		log.Infof("recovery timeout of %v exceeded; shutting down", driver.recoveryTimeout)
 		driver.shutdown(driver.context(), nil, nil)
 	}
 }
@@ -743,7 +743,7 @@ func (driver *MesosExecutorDriver) sendFrameworkMessage(data string) (mesosproto
 
 	// Send the message.
 	if err := driver.send(driver.context(), driver.slaveUPID, message); err != nil {
-		log.Errorln("Failed to send message %v: %v", message, err)
+		log.Errorf("Failed to send message %v: %v", message, err)
 		return driver.status, err
 	}
 	return driver.status, nil
diff --git a/api/v0/scheduler/scheduler.go b/api/v0/scheduler/scheduler.go
index d8a44ca..0c7e7ac 100644
--- a/api/v0/scheduler/scheduler.go
+++ b/api/v0/scheduler/scheduler.go
@@ -760,7 +760,7 @@ func (driver *MesosSchedulerDriver) exitedExecutor(_ context.Context, from *upid
 		return
 	}
 	status := msg.GetStatus()
-	log.V(2).Infoln("Lost executor %q from slave %q for framework %q with status %d",
+	log.V(2).Infof("Lost executor %q from slave %q for framework %q with status %d",
 		msg.GetExecutorId().GetValue(),
 		msg.GetSlaveId().GetValue(),
 		msg.GetFrameworkId().GetValue(),
-- 
2.21.0