mirror of
https://github.com/rancher/os.git
synced 2025-09-02 07:15:41 +00:00
make ros log to dmesg
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
@@ -3,17 +3,18 @@ package wait
|
||||
import (
|
||||
"os"
|
||||
|
||||
"github.com/Sirupsen/logrus"
|
||||
"github.com/rancher/os/config"
|
||||
"github.com/rancher/os/docker"
|
||||
"github.com/rancher/os/log"
|
||||
)
|
||||
|
||||
func Main() {
|
||||
log.InitLogger()
|
||||
_, err := docker.NewClient(config.DockerHost)
|
||||
if err != nil {
|
||||
logrus.Errorf("Failed to connect to Docker")
|
||||
log.Errorf("Failed to connect to Docker")
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
logrus.Infof("Docker is ready")
|
||||
log.Infof("Docker is ready")
|
||||
}
|
||||
|
Reference in New Issue
Block a user