feat: moved go files to root
This commit is contained in:
parent
1d8b4f27b1
commit
379e54efd7
3 changed files with 0 additions and 0 deletions
|
|
@ -1,21 +0,0 @@
|
|||
package logging
|
||||
|
||||
import (
|
||||
"io"
|
||||
"log"
|
||||
)
|
||||
|
||||
var debug bool
|
||||
|
||||
// Enables debug logging if set to true. Default is false.
|
||||
func SetDebug(debugSetting bool) {
|
||||
debug = debugSetting
|
||||
if !debug {
|
||||
log.SetOutput(io.Discard)
|
||||
}
|
||||
}
|
||||
|
||||
// Returns the current debug value as a boolean.
|
||||
func GetDebug() bool {
|
||||
return debug
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue