修复shell任务id获取

This commit is contained in:
hanhh committed 2021-07-04 19:12:45 +08:00
1 parent a8a2a54bea
commit e687511f32
2 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -257,7 +257,7 @@ export default class CronService {
public async log(_id: string) {
const doc = await this.get(_id);
if (doc.log_path) {
return getFileContentByName(`${config.logPath}/${doc.log_path}`);
return getFileContentByName(`${doc.log_path}`);
}
const [, commandStr, url] = doc.command.split(' ');
let logPath = this.getKey(commandStr);