This PR fixes the logic for logging the deprecation warning introduced with https://github.com/elastic/kibana/pull/22765. Previously Kibana would log the warning if the new `xpack.monitoring.cluster_alerts.email_notifications.email_address` setting was not defined, regardless of `xpack:defaultAdminEmail`'s setting. Now, we will only log the deprecation warning if all of the following are true: 1) `xpack.monitoring.cluster_alerts.email_notifications.email_address` is not set. 2) `xpack:defaultAdminEmail` is set. (**<-- this is the new part**) 3) We haven't already logged the deprecation warning |
||
---|---|---|
.. | ||
cloud | ||
cluster_alerts | ||
es_client | ||
kibana_monitoring | ||
lib | ||
routes | ||
init_monitoring_xpack_info.js |