mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-01-31 00:23:57 +00:00
Merge pull request #1477 from balena-io/verbose-network-log-2
log networks that do not match
This commit is contained in:
commit
1491788a27
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user