fix: fix ut

This commit is contained in:
JustSong 2024-06-23 15:14:39 +08:00
parent 3777517f64
commit a3c7e15aed
2 changed files with 2 additions and 1 deletions

View File

@ -24,7 +24,7 @@ func printHelp() {
fmt.Println("Usage: one-api [--port <port>] [--log-dir <log directory>] [--version] [--help]")
}
func init() {
func Init() {
flag.Parse()
if *PrintVersion {

View File

@ -23,6 +23,7 @@ import (
var buildFS embed.FS
func main() {
common.Init()
logger.SetupLogger()
logger.SysLogf("One API %s started", common.Version)
if os.Getenv("GIN_MODE") != "debug" {