From bbf4d0d0df914d6bfb5d3bbf77bb5d0bcaa63916 Mon Sep 17 00:00:00 2001 From: Benjamin Schimke Date: Mon, 26 Aug 2024 12:12:19 +0200 Subject: [PATCH] remove logs --- src/k8s/pkg/k8sd/database/worker.go | 1 - 1 file changed, 1 deletion(-) diff --git a/src/k8s/pkg/k8sd/database/worker.go b/src/k8s/pkg/k8sd/database/worker.go index da67e842f..332a6154b 100644 --- a/src/k8s/pkg/k8sd/database/worker.go +++ b/src/k8s/pkg/k8sd/database/worker.go @@ -33,7 +33,6 @@ func CheckWorkerNodeToken(ctx context.Context, tx *sql.Tx, nodeName string, toke if selectTxStmt.QueryRowContext(ctx, token).Scan(&tokenNodeName, &expiry) == nil { isValidToken := tokenNodeName == "" || subtle.ConstantTimeCompare([]byte(nodeName), []byte(tokenNodeName)) == 1 notExpired := time.Now().Before(expiry) - fmt.Printf("isValidToken: %v, notExpired: %v\n", isValidToken, notExpired) return isValidToken && notExpired, nil } return false, nil