diff options
author | René 'Necoro' Neumann <necoro@necoro.eu> | 2020-04-26 00:23:49 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.eu> | 2020-04-26 00:23:49 +0200 |
commit | a83e9bd36fc6a934553d93cbcc0edb120321f971 (patch) | |
tree | a9cc04ca3a0f8392f6ccbf470b323794e535ae7a /pkg/log | |
parent | 87fd0ad3e9309064fe9fda373035f5ce127ae8d8 (diff) | |
download | feed2imap-go-a83e9bd36fc6a934553d93cbcc0edb120321f971.tar.gz feed2imap-go-a83e9bd36fc6a934553d93cbcc0edb120321f971.tar.bz2 feed2imap-go-a83e9bd36fc6a934553d93cbcc0edb120321f971.zip |
Filtering from cache
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...)) |