mirror of
https://github.com/docker/docs.git
synced 2026-03-28 23:08:49 +07:00
17 lines
212 B
Go
17 lines
212 B
Go
package main
|
|
|
|
import (
|
|
"os"
|
|
|
|
log "github.com/Sirupsen/logrus"
|
|
)
|
|
|
|
func initLogging(debug bool) {
|
|
log.SetOutput(os.Stderr)
|
|
if debug {
|
|
log.SetLevel(log.DebugLevel)
|
|
} else {
|
|
log.SetLevel(log.InfoLevel)
|
|
}
|
|
}
|