Skip to content

Commit 647f008

Browse files
committed
Remove log line when looking up replicas
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
1 parent 8cd2da7 commit 647f008

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

pkg/handlers/replica_reader.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import (
1111
"fmt"
1212
"log"
1313
"net/http"
14-
"time"
1514

1615
"github.com/gorilla/mux"
1716
"github.com/openfaas/faas-netes/pkg/k8s"
@@ -50,8 +49,6 @@ func MakeReplicaReader(defaultNamespace string, lister v1.DeploymentLister) http
5049
return
5150
}
5251

53-
s := time.Now()
54-
5552
function, err := getService(lookupNamespace, functionName, lister)
5653
if err != nil {
5754
log.Printf("Unable to fetch service: %s", functionName)
@@ -65,9 +62,6 @@ func MakeReplicaReader(defaultNamespace string, lister v1.DeploymentLister) http
6562
return
6663
}
6764

68-
d := time.Since(s)
69-
log.Printf("Replicas: %s.%s, (%d/%d) %dms", functionName, lookupNamespace, function.AvailableReplicas, function.Replicas, d.Milliseconds())
70-
7165
functionBytes, err := json.Marshal(function)
7266
if err != nil {
7367
klog.Errorf("Failed to marshal function: %s", err.Error())

0 commit comments

Comments
 (0)