mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-09 00:56:37 +08:00
重构
This commit is contained in:
@@ -55,7 +55,7 @@ func initWriter() (zapcore.WriteSyncer, error) {
|
||||
logPath := logConfig.FilePath
|
||||
logDir := filepath.Dir(logPath)
|
||||
if err := os.MkdirAll(logDir, 0750); err != nil {
|
||||
return nil, fmt.Errorf("[Logger] create log file dir err: %w", err)
|
||||
return nil, fmt.Errorf(errCreateLogFileDirFailed, err)
|
||||
}
|
||||
|
||||
// 配置日志轮转
|
||||
|
||||
Reference in New Issue
Block a user