1
0
mirror of https://github.com/rancher/os.git synced 2025-09-01 14:48:55 +00:00

Redo logging so its a little more capable

Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
Sven Dowideit
2017-07-12 23:58:38 +10:00
parent bf98a1ae3f
commit 0ccc5ad735
7 changed files with 215 additions and 111 deletions

View File

@@ -9,7 +9,8 @@ import (
)
func Main() {
log.InitLogger()
log.SetLevel(log.DebugLevel)
if os.Geteuid() != 0 {
log.Fatalf("%s: Need to be root", os.Args[0])
}
@@ -18,5 +19,5 @@ func Main() {
os.Setenv("DOCKER_HOST", config.SystemDockerHost)
}
docker.Main()
docker.RancherOSMain()
}