mirror of
https://github.com/guoyk93/minit.git
synced 2025-12-24 12:37:54 +08:00
chore: remove logging for minit started and minit exited
This commit is contained in:
11
main.go
11
main.go
@@ -28,12 +28,11 @@ var (
|
||||
)
|
||||
|
||||
func exit(err *error) {
|
||||
if *err != nil {
|
||||
_, _ = fmt.Fprintf(os.Stderr, "%s: exited with error: %s\n", "minit", (*err).Error())
|
||||
os.Exit(1)
|
||||
} else {
|
||||
_, _ = fmt.Fprintf(os.Stdout, "%s: exited\n", "minit")
|
||||
if *err == nil {
|
||||
return
|
||||
}
|
||||
_, _ = fmt.Fprintf(os.Stderr, "%s: exited with error: %s\n", "minit", (*err).Error())
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
func envStr(key string, out *string) {
|
||||
@@ -162,8 +161,6 @@ func main() {
|
||||
}(runner)
|
||||
}
|
||||
|
||||
log.Printf("started")
|
||||
|
||||
// wait for signals
|
||||
chSig := make(chan os.Signal, 1)
|
||||
signal.Notify(chSig, syscall.SIGINT, syscall.SIGTERM)
|
||||
|
||||
Reference in New Issue
Block a user