diff options
Diffstat (limited to 'pkg/log')
-rw-r--r-- | pkg/log/log.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/log/log.go b/pkg/log/log.go index 4c69c1c..1e419e3 100644 --- a/pkg/log/log.go +++ b/pkg/log/log.go @@ -29,6 +29,10 @@ func SetDebug() { level = debug } +func IsDebug() bool { + return level == debug +} + func Debug(v ...interface{}) { if level <= debug { _ = debugLogger.Output(2, fmt.Sprint(v...)) |