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: args:
- --enable-leader-election - --enable-leader-election
- --storage-path=/data - --storage-path=/data
- --log-level=debug - --log-level=info
- --log-json - --log-json
env: env:
- name: RUNTIME_NAMESPACE - name: RUNTIME_NAMESPACE

View File

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