From 5b1a5a9e39caf3e6a07d24db30177de984c08e56 Mon Sep 17 00:00:00 2001 From: Satish Kumar Matti Date: Thu, 2 Apr 2020 16:10:28 -0700 Subject: [PATCH] Fix json tag for Logging --- pkg/apis/backendconfig/v1/types.go | 2 +- pkg/backends/features/logging.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/apis/backendconfig/v1/types.go b/pkg/apis/backendconfig/v1/types.go index 992261fe0b..63d81fa21d 100644 --- a/pkg/apis/backendconfig/v1/types.go +++ b/pkg/apis/backendconfig/v1/types.go @@ -45,7 +45,7 @@ type BackendConfigSpec struct { CustomRequestHeaders *CustomRequestHeadersConfig `json:"customRequestHeaders,omitempty"` HealthCheck *HealthCheckConfig `json:"healthCheck,omitempty"` // Logging specifies the configuration for access logs. - Logging *LogConfig `json:"log,omitempty"` + Logging *LogConfig `json:"logging,omitempty"` } // BackendConfigStatus is the status for a BackendConfig resource diff --git a/pkg/backends/features/logging.go b/pkg/backends/features/logging.go index 121876f52b..fbd890bf63 100644 --- a/pkg/backends/features/logging.go +++ b/pkg/backends/features/logging.go @@ -40,7 +40,7 @@ func EnsureLogging(sp utils.ServicePort, be *composite.BackendService) bool { if be.LogConfig == nil || expectedLogConfig.Enable != be.LogConfig.Enable || expectedLogConfig.SampleRate != be.LogConfig.SampleRate { be.LogConfig = expectedLogConfig - klog.V(2).Infof("Updated Logging settings for service %s", svcKey) + klog.V(2).Infof("Updated Logging settings for service %s(Enable: %t, SampleRate: %f)", svcKey, be.LogConfig.Enable, be.LogConfig.SampleRate) return true } return false