* update log

* update log level

* Enhance config.yaml by adding a comment for log-level options

* update log

* Refactor SIP service start method to accept configuration parameter for log level management

* 增加文档
This commit is contained in:
Haibo Chen(陈海博)
2025-08-26 13:59:18 +08:00
committed by GitHub
parent c034bfdae5
commit f59c92162b
3 changed files with 597 additions and 20 deletions

View File

@ -54,7 +54,7 @@ func main() {
slog.Info("*****************************************************")
slog.Info(" ☆☆☆ 欢迎使用 SRS-SIP 服务 ☆☆☆")
slog.Info("*****************************************************")
slog.Info("srs-sip service starting", "config", *configPath, "log_file", conf.Common.LogFile)
slog.Info("srs-sip service starting", "config", *configPath, "log_file", conf.Common.LogFile, "log_level", conf.Common.LogLevel)
sipSvr, err := service.NewService(ctx, conf)
if err != nil {