Skip to content

Commit 7d7939d

Browse files
committed
remove terminal logging
1 parent 46b34fb commit 7d7939d

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

npm-app/src/utils/terminal.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import assert from 'assert'
22
import { ChildProcessWithoutNullStreams, execSync, spawn } from 'child_process'
3-
import * as fs from 'fs'
43
import { createWriteStream, mkdirSync, WriteStream } from 'fs'
54
import * as os from 'os'
65
import path, { dirname } from 'path'
@@ -172,16 +171,6 @@ const createPersistantProcess = (
172171
}
173172
})
174173

175-
if (process.env.NEXT_PUBLIC_CB_ENVIRONMENT === 'local') {
176-
persistentPty.onData((data: string) => {
177-
mkdirSync('debug', { recursive: true })
178-
fs.appendFileSync(
179-
'debug/terminal.log',
180-
`${Date.now()}: ${JSON.stringify({ data })} temporary debug log for pty data\n`
181-
)
182-
})
183-
}
184-
185174
return persistentProcessInfo
186175
} else {
187176
// Fallback to child_process

0 commit comments

Comments
 (0)