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
1 changed files with 2 additions and 0 deletions

View File

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