File tree 1 file changed +2
-14
lines changed
1 file changed +2
-14
lines changed Original file line number Diff line number Diff line change @@ -81,21 +81,9 @@ import { isGithubHosted } from "./tls-inspect";
81
81
}
82
82
83
83
var disable_sudo = process . env . STATE_disableSudo ;
84
- if ( disable_sudo !== "true" ) {
85
- try {
86
- var journalLog = cp . execSync ( "sudo journalctl -u agent.service --lines=1000" , {
87
- encoding : "utf8" ,
88
- maxBuffer : 1024 * 1024 * 10 // 10MB buffer
89
- } ) ;
90
- console . log ( "agent.service log:" ) ;
91
- console . log ( journalLog ) ;
92
- } catch ( error ) {
93
- console . log ( "Warning: Could not fetch service logs:" , error . message ) ;
94
- }
95
- }
96
-
97
84
var disable_sudo_and_containers = process . env . disableSudoAndContainers ;
98
- if ( disable_sudo_and_containers !== "true" ) {
85
+
86
+ if ( disable_sudo !== "true" && disable_sudo_and_containers !== "true" ) {
99
87
try {
100
88
var journalLog = cp . execSync ( "sudo journalctl -u agent.service --lines=1000" , {
101
89
encoding : "utf8" ,
You can’t perform that action at this time.
0 commit comments