kibana/x-pack/plugins/monitoring/server/kibana_monitoring
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
..
__tests__ Retrofit the Bulk Uploader types combiner [ch2198] (#22030) 2018-08-21 12:29:04 -07:00
collectors Only log deprecation warning if xpack:defaultAdminEmail is actually set (#22774) 2018-09-07 10:06:35 -04:00
lib Stats API: implement the "kibana status" spec from the Monitoring data model for stats (#20577) 2018-07-18 16:37:04 -07:00
bulk_uploader.js Retrofit the Bulk Uploader types combiner [ch2198] (#22030) 2018-08-21 12:29:04 -07:00
index.js Separate bulk upload behavior from CollectorSet (#19691) 2018-06-21 13:08:32 -07:00
init.js Retrofit the Bulk Uploader types combiner [ch2198] (#22030) 2018-08-21 12:29:04 -07:00