Fix name of reqlog

This commit is contained in:
Eugeny Leonov 2022-07-06 20:07:27 +05:00
parent 8bb9fe2cd9
commit ef8894f930
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ func (rl *ReqRec) Finish(err *errs.Err) {
}
rl.TimeFinish = time.Now()
rl.Duration = rl.TimeFinish.Sub(rl.TimeStart)
file.Append(file.GetBinDir()+file.GetBinName()+".reqlog", []byte(rl.toString()+"\n"))
file.Append(file.GetBinDir()+"/"+file.GetBinName()+".reqlog", []byte(rl.toString()+"\n"))
if rl.s.ds != nil {
if e := rl.s.ds.Model(&ReqRec{}).Create(rl).Error; e != nil {
errs.RaiseError(errs.ErrDSError, e.Error())