github.com/argoproj/argo-cd@v1.8.7/test/fixture/log/log.go (about)

     1  package log
     2  
     3  import (
     4  	log "github.com/sirupsen/logrus"
     5  )
     6  
     7  // used to switch logging to debug level for a single func
     8  func Debug() func() {
     9  	log.SetLevel(log.DebugLevel)
    10  	return func() { log.SetLevel(log.InfoLevel) }
    11  }