Gitiles
Code Review
Sign In
gerrit.hackerspace.pl
/
hscloud
/
ed4675004cb89e2dcf9a1ec3a0e8adda1d7eb9a1
/
.
/
go
/
vendor
/
github.com
/
go-openapi
/
runtime
/
logger
/
logger.go
blob: d62c1f708fa8ffa067887f316bafa102197ba46f [
file
] [
log
] [
blame
]
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") != ""
}