Skip to content

Commit b703da2

Browse files
committed
fix log
1 parent 852d253 commit b703da2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

internal/controller/indexer/ssl_host.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,11 @@ func GatewayTLSHostIndexFunc(rawObj client.Object) []string {
6969
}
7070
}
7171

72-
tlsHostIndexLogger.Info("GatewayTLSHostIndexFunc", "hosts", hostSetToSlice(hosts), "len", len(hostSetToSlice(hosts)))
72+
hostsSlice := hostSetToSlice(hosts)
7373

74-
return hostSetToSlice(hosts)
74+
tlsHostIndexLogger.V(1).Info("GatewayTLSHostIndexFunc", "hosts", hostsSlice)
75+
76+
return hostsSlice
7577
}
7678

7779
// IngressTLSHostIndexFunc indexes Ingresses by their TLS SNI hosts.

0 commit comments

Comments
 (0)