mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-01 04:40:38 +08:00
修复shell任务id获取
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user