mirror of
https://github.com/WJQSERVER-STUDIO/ghproxy.git
synced 2026-02-03 08:11:11 +08:00
3.0.1
This commit is contained in:
parent
8a50b311fc
commit
3e9e43cd44
3 changed files with 19 additions and 6 deletions
|
|
@ -1,5 +1,11 @@
|
|||
# 更新日志
|
||||
|
||||
3.0.1 -2025-04-08
|
||||
---
|
||||
- CHANGE: 加入`memLimit`指示gc
|
||||
- CHANGE: 加入`hlog`输出路径配置
|
||||
- CHANGE: 修正H2C配置问题
|
||||
|
||||
25w27a - 2025-04-07
|
||||
---
|
||||
- PRE-RELEASE: 此版本是v3.0.1的预发布版本,请勿在生产环境中使用;
|
||||
|
|
|
|||
2
VERSION
2
VERSION
|
|
@ -1 +1 @@
|
|||
3.0.0
|
||||
3.0.1
|
||||
17
main.go
17
main.go
|
|
@ -141,12 +141,12 @@ func setupHertZLogger(cfg *config.Config) {
|
|||
if cfg.Log.HertZLogPath != "" {
|
||||
hertZfile, err = os.OpenFile(cfg.Log.HertZLogPath, os.O_CREATE|os.O_WRONLY|os.O_APPEND, 0644)
|
||||
if err != nil {
|
||||
fmt.Printf("Failed to open log file: %v\n", err)
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
hlog.SetOutput(os.Stdout)
|
||||
logWarning("Failed to open hertz log file: %v", err)
|
||||
} else {
|
||||
hlog.SetOutput(hertZfile)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -446,6 +446,13 @@ func main() {
|
|||
|
||||
r.Spin()
|
||||
defer logger.Close()
|
||||
defer hertZfile.Close()
|
||||
defer func() {
|
||||
if hertZfile != nil {
|
||||
err := hertZfile.Close()
|
||||
if err != nil {
|
||||
logError("Failed to close hertz log file: %v", err)
|
||||
}
|
||||
}
|
||||
}()
|
||||
fmt.Println("Program Exit")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue