Log info after changing entity option (#6063)

This commit is contained in:
John Doe 2021-02-03 12:26:12 +08:00 committed by GitHub
parent f042b9df2c
commit 7c1e2c1bbf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -334,6 +334,9 @@ class Bridge extends Extension {
const oldOptions = cleanup(entity.settings);
const newOptions = cleanup(settings.getEntity(ID));
await this.publishInfo();
logger.info(`Changed config for ${entityType} ${ID}`);
return utils.getResponse(message, {from: oldOptions, to: newOptions, id: ID}, null);
}