修复ghttp.Server日志路径丢失问题

This commit is contained in:
John
2018-09-14 22:07:19 +08:00
parent bf2dd56499
commit 576b6da0f5
2 changed files with 2 additions and 0 deletions

1
.gitignore vendored
View File

@ -14,3 +14,4 @@ pkg/
bin/
cbuild
*/.DS_Store
.vscode/

View File

@ -20,6 +20,7 @@ func (s *Server)SetLogPath(path string) {
return
}
s.config.LogPath = path
s.logger.SetPath(path)
}
// 设置是否开启access log日志功能