mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
7c62cee51e
Fixed #8761 Signed-off-by: Alexandr Morozov <lk4d4@docker.com>
16 lines
212 B
Go
16 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)
|
|
}
|
|
}
|