Skip to content

Commit 6f6fa07

Browse files
committed
Fix ENOBUFS issue
1 parent 18f6947 commit 6f6fa07

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

dist/post/index.js

+2-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/post/index.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/cleanup.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,9 @@ import { isGithubHosted } from "./tls-inspect";
8282

8383
var disable_sudo = process.env.STATE_disableSudo;
8484
if (disable_sudo !== "true") {
85-
var journalLog = cp.execSync("sudo journalctl -u agent.service", {
85+
var journalLog = cp.execSync("sudo journalctl -u agent.service --lines=1000", {
8686
encoding: "utf8",
87+
maxBuffer: 1024 * 1024 * 10 // 10MB buffer
8788
});
8889
console.log("Service log:");
8990
console.log(journalLog);

0 commit comments

Comments
 (0)