Merge pull request #135 from fluxcd/info-log

Configure manager logging and set level to info
This commit is contained in:
Stefan Prodan 2020-09-09 15:38:03 +03:00 committed by GitHub
commit 255d0b7c16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -33,7 +33,7 @@ spec:
args:
- --enable-leader-election
- --storage-path=/data
- --log-level=debug
- --log-level=info
- --log-json
env:
- name: RUNTIME_NAMESPACE

View File

@ -102,6 +102,7 @@ func main() {
LeaderElection: enableLeaderElection,
LeaderElectionID: "305740c0.fluxcd.io",
Namespace: os.Getenv("RUNTIME_NAMESPACE"),
Logger: ctrl.Log,
})
if err != nil {
setupLog.Error(err, "unable to start manager")