Skip to content

Commit

Permalink
Fix ENOBUFS issue
Browse files Browse the repository at this point in the history
  • Loading branch information
varunsh-coder committed Jan 19, 2025
1 parent 18f6947 commit 6f6fa07
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion dist/post/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/post/index.js.map

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion src/cleanup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,9 @@ import { isGithubHosted } from "./tls-inspect";

var disable_sudo = process.env.STATE_disableSudo;
if (disable_sudo !== "true") {
var journalLog = cp.execSync("sudo journalctl -u agent.service", {
var journalLog = cp.execSync("sudo journalctl -u agent.service --lines=1000", {
encoding: "utf8",
maxBuffer: 1024 * 1024 * 10 // 10MB buffer
});
console.log("Service log:");
console.log(journalLog);
Expand Down

0 comments on commit 6f6fa07

Please sign in to comment.