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 {
227
227
} ) ;
228
228
}
229
229
} else if ( event . Action === 'connect' || event . Action === 'disconnect' ) {
230
+ console . log ( `Updating Docker aliases for network ${ event . Actor . ID } ...` ) ;
231
+
230
232
// If any containers are attached to the network, or removed from the network
231
233
// then we just update all aliases. Exact changes are a little unpredictable,
232
234
// and this is cheap enough to do every time:
@@ -243,6 +245,7 @@ class DockerNetworkMonitor {
243
245
}
244
246
245
247
private async refreshAllNetworks ( ) {
248
+ console . log ( 'Updating all Docker network aliases...' ) ;
246
249
const networks = await this . docker . listNetworks ( ) ;
247
250
248
251
const networkMap = await Promise . all (
Original file line number Diff line number Diff line change @@ -105,6 +105,7 @@ export function ensureDockerTunnelRunning(proxyPort: number) {
105
105
106
106
// Make sure the tunneling container is running:
107
107
if ( ! container . State . Running ) {
108
+ console . log ( "Starting Docker tunnel..." ) ;
108
109
await docker . getContainer ( container . Id ) . start ( ) ;
109
110
}
110
111
@@ -138,6 +139,8 @@ export async function updateDockerTunnelledNetworks(
138
139
proxyPort : number ,
139
140
interceptedNetworks : string [ ]
140
141
) {
142
+ console . log ( `Updating intercepted Docker networks to: ${ interceptedNetworks . join ( ', ' ) } ` ) ;
143
+
141
144
const docker = new Docker ( ) ;
142
145
143
146
const defaultBridgeId = docker . listNetworks ( {
@@ -208,6 +211,7 @@ export async function getDockerTunnelPort(proxyPort: number): Promise<number> {
208
211
}
209
212
210
213
export async function refreshDockerTunnelPortCache ( proxyPort : number , { force } = { force : false } ) : Promise < number > {
214
+ console . log ( "Querying Docker tunnel port..." ) ;
211
215
try {
212
216
if ( ! force && _ . isObject ( portCache [ proxyPort ] ) ) {
213
217
// 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