mirror of
https://gitee.com/fit2cloud-feizhiyun/1Panel.git
synced 2024-12-04 21:09:31 +08:00
parent
fd5b34d644
commit
68ad653545
@ -248,7 +248,7 @@ func (u *SSHService) LoadLog(req dto.SearchSSHLog) (*dto.SSHLog, error) {
|
|||||||
data.Logs = append(data.Logs, dataItem...)
|
data.Logs = append(data.Logs, dataItem...)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
commandItem := fmt.Sprintf("cat %s | grep Accepted %s", fileList[i], command)
|
commandItem := fmt.Sprintf("cat %s | grep -a Accepted %s", fileList[i], command)
|
||||||
dataItem := loadSuccessDatas(commandItem)
|
dataItem := loadSuccessDatas(commandItem)
|
||||||
data.TotalCount += len(dataItem)
|
data.TotalCount += len(dataItem)
|
||||||
if req.Status != constant.StatusFailed {
|
if req.Status != constant.StatusFailed {
|
||||||
|
Loading…
Reference in New Issue
Block a user