mirror of
https://github.com/rancher/os.git
synced 2025-09-13 05:33:34 +00:00
make ros log to dmesg
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
@@ -11,9 +11,9 @@ import (
|
||||
"strings"
|
||||
"syscall"
|
||||
|
||||
log "github.com/Sirupsen/logrus"
|
||||
"github.com/docker/libnetwork/resolvconf"
|
||||
"github.com/rancher/os/config"
|
||||
"github.com/rancher/os/log"
|
||||
"github.com/rancher/os/netconf"
|
||||
"github.com/rancher/os/selinux"
|
||||
"github.com/rancher/os/util"
|
||||
@@ -694,6 +694,7 @@ func LaunchDocker(config *Config, docker string, args ...string) (*exec.Cmd, err
|
||||
}
|
||||
|
||||
func Main() {
|
||||
log.InitLogger()
|
||||
if os.Getenv("DOCKER_LAUNCH_DEBUG") == "true" {
|
||||
log.SetLevel(log.DebugLevel)
|
||||
}
|
||||
|
Reference in New Issue
Block a user