mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
feat: update document and remove some debug logging
This commit is contained in:
1 parent
58354b7cd8
commit
91ebaec22c
4 files changed
+33
-7
No files matched your search
@@ -80,7 +80,7 @@ async function connectContainer(socket: Socket, next: (err?: Error) => void) {
|
||||
next()
|
||||
} catch (err) {
|
||||
logger.error(err)
|
||||
next(new Error('Failed to start container.'))
|
||||
next(new Error('Failed to connect to container.'))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,6 @@ export async function connectToSSH(
|
||||
return new Promise((resolve, reject) => {
|
||||
conn
|
||||
.on('ready', () => {
|
||||
console.log('SSH connection ready')
|
||||
conn.shell(
|
||||
{
|
||||
env: {
|
||||
@@ -26,7 +25,6 @@ export async function connectToSSH(
|
||||
reject(err)
|
||||
}
|
||||
stream.on('close', () => {
|
||||
console.log('Stream :: close')
|
||||
conn.end()
|
||||
})
|
||||
resolve(stream)
|
||||
@@ -41,7 +39,6 @@ export async function connectToSSH(
|
||||
port: 22,
|
||||
username: 'commander',
|
||||
privateKey: config.docker.keypair.privateKey,
|
||||
debug: console.log,
|
||||
timeout: 5000,
|
||||
})
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user