mirror of
https://github.com/jenkinsci/kubernetes-operator.git
synced 2026-10-22 07:02:58 +02:00
lint with golangci-lint
This commit is contained in:
+3
-3
@@ -9,10 +9,10 @@ import (
|
||||
logf "sigs.k8s.io/controller-runtime/pkg/log"
|
||||
)
|
||||
|
||||
// Log represents global logger
|
||||
// Log represents global logger.
|
||||
var Log = logf.Log.WithName("controller-jenkins")
|
||||
|
||||
// Debug indicates that debug level is set
|
||||
// Debug indicates that debug level is set.
|
||||
var Debug bool
|
||||
|
||||
const (
|
||||
@@ -43,7 +43,7 @@ func fatalIfErr(err error, f func(format string, v ...interface{})) {
|
||||
}
|
||||
}
|
||||
|
||||
// SetupLogger setups global logger
|
||||
// SetupLogger setups global logger.
|
||||
func SetupLogger(debug bool) {
|
||||
Debug = debug
|
||||
logf.SetLogger(zapLogger(debug))
|
||||
|
||||
Reference in New Issue
Block a user