diff --git a/gateway/handlers/notifiers.go b/gateway/handlers/notifiers.go index 1154b75b..0398b291 100644 --- a/gateway/handlers/notifiers.go +++ b/gateway/handlers/notifiers.go @@ -85,5 +85,5 @@ type LoggingNotifier struct { // Notify a log about a request func (LoggingNotifier) Notify(method string, URL string, originalURL string, statusCode int, duration time.Duration) { - log.Printf("Forwarded [%s] to %s - [%d] - %f seconds", method, originalURL, statusCode, duration.Seconds()) + log.Printf("Forwarded [%s] to %s - [%d] - %fs", method, originalURL, statusCode, duration.Seconds()) } diff --git a/gateway/handlers/scaling.go b/gateway/handlers/scaling.go index 0484929d..85ac6f3e 100644 --- a/gateway/handlers/scaling.go +++ b/gateway/handlers/scaling.go @@ -57,6 +57,6 @@ func MakeScalingHandler(next http.HandlerFunc, config scaling.ScalingConfig, def return } - log.Printf("[Scale] function=%s.%s 0=>N timed-out after %f seconds\n", functionName, namespace, res.Duration.Seconds()) + log.Printf("[Scale] function=%s.%s 0=>N timed-out after %fs\n", functionName, namespace, res.Duration.Seconds()) } } diff --git a/gateway/scaling/function_scaler.go b/gateway/scaling/function_scaler.go index a9b7cc9d..93c9b08a 100644 --- a/gateway/scaling/function_scaler.go +++ b/gateway/scaling/function_scaler.go @@ -117,7 +117,7 @@ func (f *FunctionScaler) Scale(functionName, namespace string) FunctionScaleResu if queryResponse.AvailableReplicas > 0 { - log.Printf("[Scale] function=%s 0 => %d successful - %f seconds", + log.Printf("[Scale] function=%s 0 => %d successful - %fs", functionName, queryResponse.AvailableReplicas, totalTime.Seconds()) return FunctionScaleResult{ diff --git a/watchdog/handler.go b/watchdog/handler.go index 1f9ca00c..94f8baaa 100644 --- a/watchdog/handler.go +++ b/watchdog/handler.go @@ -215,9 +215,9 @@ func pipeRequest(config *WatchdogConfig, w http.ResponseWriter, r *http.Request, } if len(bytesWritten) > 0 { - log.Printf("%s - Duration: %f seconds", bytesWritten, execDuration) + log.Printf("%s - Duration: %fs", bytesWritten, execDuration) } else { - log.Printf("Duration: %f seconds", execDuration) + log.Printf("Duration: %fs", execDuration) } }