Skip to content

Commit

Permalink
Fix json tag for Logging
Browse files Browse the repository at this point in the history
  • Loading branch information
skmatti committed Apr 6, 2020
1 parent ff3f3c8 commit 5b1a5a9
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 5b1a5a9

Please sign in to comment.