Add debug log for options passed to the agent

This commit is contained in:
Anmol Sethi 2020-10-07 17:16:20 -04:00
parent 85b0804be5
commit 3e28ab85a0
No known key found for this signature in database
GPG Key ID: 8CEF1878FF10ADEB

View File

@ -6,6 +6,8 @@ import split2 from "split2"
const coderCloudAgent = path.resolve(__dirname, "../../lib/coder-cloud-agent") const coderCloudAgent = path.resolve(__dirname, "../../lib/coder-cloud-agent")
function runAgent(...args: string[]): Promise<void> { function runAgent(...args: string[]): Promise<void> {
logger.debug(`running agent with ${args}`)
const agent = spawn(coderCloudAgent, args, { const agent = spawn(coderCloudAgent, args, {
stdio: ["inherit", "inherit", "pipe"], stdio: ["inherit", "inherit", "pipe"],
}) })