summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/go-openapi/runtime/logger/logger.go
blob: d62c1f708fa8ffa067887f316bafa102197ba46f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
package logger

import "os"

type Logger interface {
	Printf(format string, args ...interface{})
	Debugf(format string, args ...interface{})
}

func DebugEnabled() bool {
	return os.Getenv("SWAGGER_DEBUG") != "" || os.Getenv("DEBUG") != ""
}