feat: more logs
This commit is contained in:
parent
049a5e6e7e
commit
02d0f49070
|
@ -98,6 +98,7 @@ func mainImpl() error {
|
|||
if err := setupSlog(""); err != nil { // before conf is loaded
|
||||
return err
|
||||
}
|
||||
slog.Info("start joj3", "version", Version)
|
||||
flag.Parse()
|
||||
if *showVersion {
|
||||
fmt.Println(Version)
|
||||
|
@ -140,6 +141,7 @@ func mainImpl() error {
|
|||
|
||||
func main() {
|
||||
if err := mainImpl(); err != nil {
|
||||
slog.Error("main exit", "error", err)
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user