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@c205cb42ae
This commit is contained in:
Areek Zillur 2016-12-07 18:01:58 -05:00 committed by GitHub
parent 754fada43b
commit b274ddc0da
1 changed files with 2 additions and 0 deletions

View File

@ -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);
}