File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -227,6 +227,8 @@ class DockerNetworkMonitor {
227227 } ) ;
228228 }
229229 } else if ( event . Action === 'connect' || event . Action === 'disconnect' ) {
230+ console . log ( `Updating Docker aliases for network ${ event . Actor . ID } ...` ) ;
231+
230232 // If any containers are attached to the network, or removed from the network
231233 // then we just update all aliases. Exact changes are a little unpredictable,
232234 // and this is cheap enough to do every time:
@@ -243,6 +245,7 @@ class DockerNetworkMonitor {
243245 }
244246
245247 private async refreshAllNetworks ( ) {
248+ console . log ( 'Updating all Docker network aliases...' ) ;
246249 const networks = await this . docker . listNetworks ( ) ;
247250
248251 const networkMap = await Promise . all (
Original file line number Diff line number Diff line change @@ -105,6 +105,7 @@ export function ensureDockerTunnelRunning(proxyPort: number) {
105105
106106 // Make sure the tunneling container is running:
107107 if ( ! container . State . Running ) {
108+ console . log ( "Starting Docker tunnel..." ) ;
108109 await docker . getContainer ( container . Id ) . start ( ) ;
109110 }
110111
@@ -138,6 +139,8 @@ export async function updateDockerTunnelledNetworks(
138139 proxyPort : number ,
139140 interceptedNetworks : string [ ]
140141) {
142+ console . log ( `Updating intercepted Docker networks to: ${ interceptedNetworks . join ( ', ' ) } ` ) ;
143+
141144 const docker = new Docker ( ) ;
142145
143146 const defaultBridgeId = docker . listNetworks ( {
@@ -208,6 +211,7 @@ export async function getDockerTunnelPort(proxyPort: number): Promise<number> {
208211}
209212
210213export async function refreshDockerTunnelPortCache ( proxyPort : number , { force } = { force : false } ) : Promise < number > {
214+ console . log ( "Querying Docker tunnel port..." ) ;
211215 try {
212216 if ( ! force && _ . isObject ( portCache [ proxyPort ] ) ) {
213217 // If there's an existing promise refreshing this data, then don't duplicate:
You can’t perform that action at this time.
0 commit comments