Always log the service log
This commit is contained in:
parent
a3bbe987cd
commit
a29f6823d1
3 changed files with 13 additions and 15 deletions
13
dist/post/index.js
vendored
13
dist/post/index.js
vendored
|
|
@ -61488,13 +61488,12 @@ var cleanup_awaiter = (undefined && undefined.__awaiter) || function (thisArg, _
|
|||
lib_core.error(line);
|
||||
});
|
||||
}
|
||||
if (!external_fs_.existsSync(doneFile)) {
|
||||
var journalLog = external_child_process_.execSync("sudo journalctl -u agent.service", {
|
||||
encoding: "utf8",
|
||||
});
|
||||
console.log("Service log:");
|
||||
console.log(journalLog);
|
||||
}
|
||||
// Always log the service log
|
||||
var journalLog = external_child_process_.execSync("sudo journalctl -u agent.service", {
|
||||
encoding: "utf8",
|
||||
});
|
||||
console.log("Service log:");
|
||||
console.log(journalLog);
|
||||
try {
|
||||
const cmd = "sudo";
|
||||
const args = ["cp", external_path_default().join(__dirname, "cache.txt"), cacheFile];
|
||||
|
|
|
|||
2
dist/post/index.js.map
vendored
2
dist/post/index.js.map
vendored
File diff suppressed because one or more lines are too long
|
|
@ -62,14 +62,13 @@ import path from "path";
|
|||
});
|
||||
}
|
||||
|
||||
if (!fs.existsSync(doneFile)) {
|
||||
var journalLog = cp.execSync("sudo journalctl -u agent.service", {
|
||||
encoding: "utf8",
|
||||
});
|
||||
// Always log the service log
|
||||
var journalLog = cp.execSync("sudo journalctl -u agent.service", {
|
||||
encoding: "utf8",
|
||||
});
|
||||
console.log("Service log:");
|
||||
console.log(journalLog);
|
||||
|
||||
console.log("Service log:");
|
||||
console.log(journalLog);
|
||||
}
|
||||
try {
|
||||
const cmd = "sudo";
|
||||
const args = ["cp", path.join(__dirname, "cache.txt"), cacheFile];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue