From b274ddc0da6199af6b712eb154c3e2995051fad2 Mon Sep 17 00:00:00 2001 From: Areek Zillur Date: Wed, 7 Dec 2016 18:01:58 -0500 Subject: [PATCH] Log license type on license update (elastic/elasticsearch#4308) Now when a cluster gets updated with a new license, the license uid and type will be logged as info. Making it easier to verify the current license mode of the cluster. Original commit: elastic/x-pack-elasticsearch@c205cb42ae637d087ed30a6dc89e71d830a2fe19 --- .../src/main/java/org/elasticsearch/license/LicenseService.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/elasticsearch/src/main/java/org/elasticsearch/license/LicenseService.java b/elasticsearch/src/main/java/org/elasticsearch/license/LicenseService.java index 0be843e0935..ca4c3de098b 100644 --- a/elasticsearch/src/main/java/org/elasticsearch/license/LicenseService.java +++ b/elasticsearch/src/main/java/org/elasticsearch/license/LicenseService.java @@ -424,6 +424,8 @@ public class LicenseService extends AbstractLifecycleComponent implements Cluste // remove operationModeFileWatcher to gc the old license object previousLicense.removeOperationModeFileWatcher(); } + logger.info("license [{}] mode [{}] - valid", license.uid(), + license.operationMode().name().toLowerCase(Locale.ROOT)); } updateLicenseState(license); }