Logging improvement
parent
efedce3b10
commit
57f2b487fd
|
|
@ -561,6 +561,7 @@ const cloud_runner_logger_1 = __importDefault(__webpack_require__(22855));
|
||||||
class CloudRunnerAgentSystem {
|
class CloudRunnerAgentSystem {
|
||||||
static Run(command) {
|
static Run(command) {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
|
cloud_runner_logger_1.default.logCli(`${command}`);
|
||||||
return yield new Promise((promise) => {
|
return yield new Promise((promise) => {
|
||||||
let output = '';
|
let output = '';
|
||||||
const child = child_process_1.exec(command, (error, stdout, stderr) => {
|
const child = child_process_1.exec(command, (error, stdout, stderr) => {
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -3,6 +3,7 @@ import CloudRunnerLogger from '../../cloud-runner/services/cloud-runner-logger';
|
||||||
|
|
||||||
export class CloudRunnerAgentSystem {
|
export class CloudRunnerAgentSystem {
|
||||||
public static async Run(command: string) {
|
public static async Run(command: string) {
|
||||||
|
CloudRunnerLogger.logCli(`${command}`);
|
||||||
return await new Promise<string>((promise) => {
|
return await new Promise<string>((promise) => {
|
||||||
let output = '';
|
let output = '';
|
||||||
const child = exec(command, (error, stdout, stderr) => {
|
const child = exec(command, (error, stdout, stderr) => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue