mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-01-11 15:32:47 +00:00
Improved log message when networks do not match
Change-type: patch Signed-off-by: Miguel Casqueira <miguel@balena.io>
This commit is contained in:
parent
d5d870bdc2
commit
edf23871d9
@ -742,6 +742,15 @@ export class Service {
|
|||||||
}
|
}
|
||||||
sameNetworks =
|
sameNetworks =
|
||||||
sameNetworks && this.isSameNetwork(this.config.networks[name], network);
|
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
|
// Check the configuration for any changes
|
||||||
|
Loading…
Reference in New Issue
Block a user