mirror of
https://github.com/getsops/sops.git
synced 2026-02-05 12:45:21 +01:00
Set default logging level to Warn
This commit is contained in:
@@ -25,6 +25,7 @@ func (f *TextFormatter) Format(entry *logrus.Entry) ([]byte, error) {
|
||||
|
||||
func NewLogger(name string) *logrus.Logger {
|
||||
log := logrus.New()
|
||||
log.SetLevel(logrus.WarnLevel)
|
||||
log.Formatter = &TextFormatter{
|
||||
LoggerName: name,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user