From dc044914ac17040c8d7c2398d1a0a80b915891b0 Mon Sep 17 00:00:00 2001 From: Keuin Date: Mon, 12 Sep 2022 03:10:47 +0800 Subject: Proper use of loggers. --- recording/runner.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'recording/runner.go') diff --git a/recording/runner.go b/recording/runner.go index fddb562..c44a06c 100644 --- a/recording/runner.go +++ b/recording/runner.go @@ -122,7 +122,7 @@ func tryRunTask(t *RunningTask) error { } if err2 != nil { // some other unrecoverable error - t.logger.Error("Cannot recover from error: %v") + t.logger.Error("Cannot recover from error: %v", err2) return err2 } } @@ -297,10 +297,10 @@ func watcherRecoverableLoop( chWatcherDown <- struct{}{} return case ErrTransport: - task.logger.Error("ERROR: Watcher stopped due to an I/O error: %v", err) + task.logger.Error("Watcher stopped due to an I/O error: %v", err) waitSeconds := task.Transport.RetryIntervalSeconds task.logger.Warning( - "WARNING: Sleep for %v second(s) before restarting watcher.\n", + "Sleep for %v second(s) before restarting watcher.\n", waitSeconds, ) time.Sleep(time.Duration(waitSeconds) * time.Second) -- cgit v1.2.3