Skip to content

Commit

Permalink
Improve logging
Browse files Browse the repository at this point in the history
  • Loading branch information
petersutter committed Dec 15, 2021
1 parent b368cfc commit 3c98490
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/get_client_certificate.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ func (o *GetClientCertificateOptions) RunGetClientCertificate(ctx context.Contex

cachedCertificateSet, err := o.CertificateCacheStore.FindByKey(certificateCacheKey)
if err != nil {
klog.V(4).Info("could not find a cached certificate: %w", err)
klog.V(4).Infof("could not find a cached certificate: %v", err)
}

ec, err := o.getExecCredential(ctx, certificateCacheKey, cachedCertificateSet)
Expand Down
2 changes: 2 additions & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ func initConfig() {
klog.Errorf("failed to read config file: %v", err)
}

klog.V(4).Infof("Gardenlogin config loaded from file: %s", viper.ConfigFileUsed())

getClientCertificateCmd.Flags().VisitAll(func(flag *pflag.Flag) {
viperKey := strcase.ToLowerCamel(flag.Name)

Expand Down

0 comments on commit 3c98490

Please sign in to comment.