Merge pull request #1477 from balena-io/verbose-network-log-2

log networks that do not match
This commit is contained in:
bulldozer-balena[bot] 2020-10-19 16:55:22 +00:00 committed by GitHub
commit 1491788a27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -742,6 +742,15 @@ export class Service {
}
sameNetworks =
sameNetworks && this.isSameNetwork(this.config.networks[name], network);
if (!sameNetworks) {
const currentNetwork = this.config.networks[name];
const newNetwork = network;
log.debug(
`Networks do not match!\nCurrent network: \n${JSON.stringify(
currentNetwork,
)}\nNew network: \n${JSON.stringify(newNetwork)}`,
);
}
});
// Check the configuration for any changes