mirror of
https://github.com/status-im/status-go.git
synced 2025-01-21 12:11:44 +00:00
fix(status-cli)_: exit on sigint, actualyl print error log on failure (#5398)
This commit is contained in:
parent
5934233266
commit
e6bf7e7df9
@ -1,6 +1,7 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"log"
|
||||
"os"
|
||||
"time"
|
||||
|
||||
@ -168,6 +169,6 @@ func main() {
|
||||
}
|
||||
|
||||
if err := app.Run(os.Args); err != nil {
|
||||
zap.L().Fatal("main", zap.Error(err))
|
||||
log.Fatal(err)
|
||||
}
|
||||
}
|
||||
|
@ -21,6 +21,8 @@ func simulate(cCtx *cli.Context) error {
|
||||
signal.Notify(sig, syscall.SIGINT, syscall.SIGTERM)
|
||||
<-sig
|
||||
cancel()
|
||||
time.Sleep(1 * time.Second)
|
||||
os.Exit(1)
|
||||
}()
|
||||
|
||||
logger, err := getSLogger(cCtx.Bool(DebugLevel))
|
||||
|
Loading…
x
Reference in New Issue
Block a user