From 835b0f126b526fdefcd3a69225dedea5d9b7c873 Mon Sep 17 00:00:00 2001 From: soulgalore Date: Tue, 13 Feb 2024 06:34:10 +0100 Subject: [PATCH] Log when you throttle, also in Docker --- lib/connectivity/index.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/connectivity/index.js b/lib/connectivity/index.js index 41d5ef7b2..61a26dfed 100644 --- a/lib/connectivity/index.js +++ b/lib/connectivity/index.js @@ -29,7 +29,14 @@ export async function addConnectivity(options) { return; } case 'throttle': { - if (!options.docker) { + if (options.docker) { + if (options.connectivity && options.connectivity.profile) { + log.info( + 'Setting connectivity profile %s', + options.connectivity.profile + ); + } + } else { // The log message is confusing if you run in Docker since // there's nothing you can do about it if (options.connectivity && options.connectivity.profile) {