File tree Expand file tree Collapse file tree
auto-discovery/cloud-aws/cmd/service Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import (
1111 "github.com/secureCodeBox/secureCodeBox/auto-discovery/cloud-aws/pkg/aws"
1212 "github.com/secureCodeBox/secureCodeBox/auto-discovery/cloud-aws/pkg/config"
1313 "github.com/secureCodeBox/secureCodeBox/auto-discovery/cloud-aws/pkg/kubernetes"
14+ "k8s.io/klog/v2"
1415 ctrl "sigs.k8s.io/controller-runtime"
1516 "sigs.k8s.io/controller-runtime/pkg/log/zap"
1617)
@@ -22,13 +23,14 @@ func main() {
2223 "Omit this flag to use the default configuration values. " +
2324 "Environment variables override some configuration values from this file." )
2425 opts := zap.Options {
25- Development : true ,
26+ Development : false ,
2627 }
2728 opts .BindFlags (flag .CommandLine )
2829 flag .Parse ()
2930
3031 log := zap .New (zap .UseFlagOptions (& opts ))
3132 ctrl .SetLogger (log )
33+ klog .SetLogger (log )
3234
3335 // Read config from file first, some values may be overridden by env variables
3436 cfg := config .GetConfig (configFile )
You can’t perform that action at this time.
0 commit comments