mirror of
https://github.com/WJQSERVER-STUDIO/ghproxy.git
synced 2026-02-03 08:11:11 +08:00
update
This commit is contained in:
parent
a26eac1097
commit
317e49283e
1 changed files with 4 additions and 1 deletions
5
main.go
5
main.go
|
|
@ -70,7 +70,10 @@ func setupLogger(cfg *config.Config) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Printf("Failed to initialize logger: %v\n", err)
|
fmt.Printf("Failed to initialize logger: %v\n", err)
|
||||||
}
|
}
|
||||||
logger.SetLogLevel(cfg.Log.Level)
|
err = logger.SetLogLevel(cfg.Log.Level)
|
||||||
|
if err != nil {
|
||||||
|
fmt.Printf("Logger Level Error: %v\n", err)
|
||||||
|
}
|
||||||
fmt.Printf("Log Level: %s\n", cfg.Log.Level)
|
fmt.Printf("Log Level: %s\n", cfg.Log.Level)
|
||||||
logDebug("Config File Path: ", cfgfile)
|
logDebug("Config File Path: ", cfgfile)
|
||||||
logDebug("Loaded config: %v\n", cfg)
|
logDebug("Loaded config: %v\n", cfg)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue