feat: more logs
All checks were successful
build / build (push) Successful in 1m13s
build / trigger-build-image (push) Successful in 5s

This commit is contained in:
张泊明518370910136 2024-10-01 16:06:47 -04:00
parent 049a5e6e7e
commit 02d0f49070
GPG Key ID: D47306D7062CDA9D

View File

@ -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)
}
}