Skip to content

Commit bca0f31

Browse files
J12934Reet00
authored andcommitted
Properly align logs in aws auto-discovery to be in line with other go
projects Signed-off-by: Jannik Hollenbach <jannik.hollenbach@owasp.org>
1 parent 1648a71 commit bca0f31

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • auto-discovery/cloud-aws/cmd/service

auto-discovery/cloud-aws/cmd/service/main.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)