Skip to content

Commit

Permalink
Merge pull request #1069 from skmatti/json-fix-1.9
Browse files Browse the repository at this point in the history
Cherrypick #1066[Fix json tag for Logging]
  • Loading branch information
k8s-ci-robot authored Apr 6, 2020
2 parents 325af47 + faa1300 commit 78be425
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/apis/backendconfig/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pkg/backends/features/logging.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 78be425

Please sign in to comment.