kibana/x-pack/plugins/monitoring/server
Larry Gregory d021f71f6f
Only log deprecation warning if xpack:defaultAdminEmail is actually set (#22774)
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
2018-09-07 10:06:35 -04:00
..
cloud Fix misspellings (#19981) 2018-06-26 20:17:41 -07:00
cluster_alerts Fix misspellings (#19981) 2018-06-26 20:17:41 -07:00
es_client Fix misspellings (#19981) 2018-06-26 20:17:41 -07:00
kibana_monitoring Only log deprecation warning if xpack:defaultAdminEmail is actually set (#22774) 2018-09-07 10:06:35 -04:00
lib [Monitoring] Ignore Duplicate Shards (#21057) 2018-07-24 16:04:11 -04:00
routes [Monitoring] Ignore Duplicate Shards (#21057) 2018-07-24 16:04:11 -04:00
init_monitoring_xpack_info.js Migrate x-pack-kibana source to kibana 2018-04-24 13:48:10 -07:00