mirror of
https://github.com/rancher/os.git
synced 2025-09-07 17:54:57 +00:00
Enable logging in more ros command services
This commit is contained in:
@@ -85,7 +85,9 @@ func consoleSwitch(c *cli.Context) error {
|
||||
if err = service.Delete(context.Background(), options.Delete{}); err != nil {
|
||||
return err
|
||||
}
|
||||
return service.Up(context.Background(), options.Up{})
|
||||
return service.Up(context.Background(), options.Up{
|
||||
Log: true,
|
||||
})
|
||||
}
|
||||
|
||||
func consoleList(c *cli.Context) error {
|
||||
|
@@ -244,7 +244,9 @@ func startUpgradeContainer(image string, stage, force, reboot, kexec bool, upgra
|
||||
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
|
||||
}
|
||||
|
||||
|
@@ -27,7 +27,9 @@ func Main() {
|
||||
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)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user