Skip to content

Commit

Permalink
Use std log library to log startup errors
Browse files Browse the repository at this point in the history
Switch from custom logger to std `log` library for starup errors.
  • Loading branch information
huiyifyj committed Jan 23, 2025
1 parent 9783203 commit 6d2fda4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@
package main

import (
"log"

"github.com/Pengxn/go-xn/src/cmd"
"github.com/Pengxn/go-xn/src/util/log"
)

func main() {
if err := cmd.Execute(); err != nil {
log.Fatalln("Fail to start app...", err)
log.Fatalln("fail to start app:", err)
}
}

0 comments on commit 6d2fda4

Please sign in to comment.