Files
kopia/repo/logging/null_logger.go
Jarek Kowalski cbc66f936d chore(ci): upgraded linter to 1.53.3 (#3079)
* chore(ci): upgraded linter to 1.53.3

This flagged a bunch of unused parameters, so the PR is larger than
usual, but 99% mechanical.

* separate lint CI task

* run Lint in separate CI
2023-06-18 13:26:01 -07:00

13 lines
240 B
Go

package logging
import "go.uber.org/zap"
// NullLogger represents a singleton logger that discards all output.
//
//nolint:gochecknoglobals
var NullLogger = zap.NewNop().Sugar()
func getNullLogger(_ string) Logger {
return NullLogger
}