1
0
mirror of https://github.com/rancher/os.git synced 2025-09-09 02:31:36 +00:00

Enable logging in more ros command services

This commit is contained in:
Josh Curl
2016-06-07 19:19:18 -07:00
parent 3728a328ea
commit b279fa85f6
3 changed files with 9 additions and 3 deletions

View File

@@ -85,7 +85,9 @@ func consoleSwitch(c *cli.Context) error {
if err = service.Delete(context.Background(), options.Delete{}); err != nil { if err = service.Delete(context.Background(), options.Delete{}); err != nil {
return err return err
} }
return service.Up(context.Background(), options.Up{}) return service.Up(context.Background(), options.Up{
Log: true,
})
} }
func consoleList(c *cli.Context) error { func consoleList(c *cli.Context) error {

View File

@@ -244,7 +244,9 @@ func startUpgradeContainer(image string, stage, force, reboot, kexec bool, upgra
return err return err
} }
if err := container.Up(context.Background(), options.Up{}); err != nil { if err := container.Up(context.Background(), options.Up{
Log: true,
}); err != nil {
return err return err
} }

View File

@@ -27,7 +27,9 @@ func Main() {
log.Fatal(err) log.Fatal(err)
} }
if err = project.Up(context.Background(), options.Up{}, "console"); err != nil { if err = project.Up(context.Background(), options.Up{
Log: true,
}, "console"); err != nil {
log.Fatal(err) log.Fatal(err)
} }