Introduce a log.Debug constant

It's slightly more obvious that logger.V(log.Debug).Info() results in debug
logging than logger.V(1).Info().

Signed-off-by: Nic Cope <negz@rk0n.org>
This commit is contained in:
Nic Cope 2019-04-03 11:54:18 -07:00
parent 97a6faa504
commit 0ec812d5aa
1 changed files with 5 additions and 0 deletions

View File

@ -23,6 +23,11 @@ import (
runtimelog "sigs.k8s.io/controller-runtime/pkg/runtime/log"
)
// Logging levels.
const (
Debug = 1
)
var (
log = runtimelog.NewDelegatingLogger(runtimelog.NullLogger{})