mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-23 02:48:34 +08:00
[优化] 更新kit包
This commit is contained in:
@@ -8,8 +8,6 @@ import (
|
||||
"path/filepath"
|
||||
)
|
||||
|
||||
var Conf *Config
|
||||
|
||||
func InitConfig(configFilePath string) *Config {
|
||||
// 获取启动参数中,配置文件的绝对路径
|
||||
path, _ := filepath.Abs(configFilePath)
|
||||
@@ -22,7 +20,6 @@ func InitConfig(configFilePath string) *Config {
|
||||
// 校验配置文件内容信息
|
||||
yc.Valid()
|
||||
|
||||
Conf = yc
|
||||
return yc
|
||||
|
||||
}
|
||||
|
||||
@@ -15,6 +15,9 @@ type LogFile struct {
|
||||
// 获取完整路径文件名
|
||||
func (l *LogFile) GetFilename() string {
|
||||
var filepath, filename string
|
||||
if l == nil {
|
||||
return ""
|
||||
}
|
||||
if fp := l.Path; fp == "" {
|
||||
filepath = "./"
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user