Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove logging.Fatal from machine start #1066

Closed
anjannath opened this issue Mar 5, 2020 · 0 comments
Closed

Remove logging.Fatal from machine start #1066

anjannath opened this issue Mar 5, 2020 · 0 comments

Comments

@anjannath
Copy link
Member

anjannath commented Mar 5, 2020

When a crc vm with a different bundle versions exists, we error out calling logging.Fatal which calls os.Exit() and makes the whole process exit, which is bad for the daemon.

https://github.com/code-ready/crc/blob/3ba6f260e5276c814077706fde0789bc238ecfbf/pkg/crc/machine/machine.go#L187-L190

anjannath added a commit to anjannath/crc that referenced this issue Mar 5, 2020
In case of the daemon, we don't want an error in machine.Start()
to exit the daemon process, logging.Fatal calls os.Exit which
kills the process
anjannath added a commit to anjannath/crc that referenced this issue Mar 5, 2020
In case of the daemon, we don't want an error in machine.Start()
to exit the daemon process, logging.Fatal calls os.Exit which
kills the process
anjannath added a commit to anjannath/crc that referenced this issue Mar 5, 2020
In case of the daemon, we don't want an error in machine.Start()
to exit the daemon process, logging.Fatal calls os.Exit which
kills the process
anjannath added a commit to anjannath/crc that referenced this issue Mar 5, 2020
In case of the daemon, we don't want an error in machine.Start()
to exit the daemon process, logging.Fatal calls os.Exit which
kills the process
anjannath added a commit to anjannath/crc that referenced this issue Mar 5, 2020
In case of the daemon, we don't want an error in machine.Start()
to exit the daemon process, logging.Fatal calls os.Exit which
kills the process
praveenkumar pushed a commit that referenced this issue Mar 5, 2020
In case of the daemon, we don't want an error in machine.Start()
to exit the daemon process, logging.Fatal calls os.Exit which
kills the process
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants