Fix license expiry log message
- change license expiration message from error to warn - start logging expiry message from 25 days instead of 30 closes elastic/elasticsearch#2231 Original commit: elastic/x-pack-elasticsearch@6c88066c1f
This commit is contained in:
parent
946cbfb997
commit
3ffe341f48
|
@ -149,7 +149,7 @@ public class LicensesService extends AbstractLifecycleComponent<LicensesService>
|
|||
}
|
||||
|
||||
private void populateExpirationCallbacks() {
|
||||
expirationCallbacks.add(new ExpirationCallback.Pre(days(7), days(30), days(1)) {
|
||||
expirationCallbacks.add(new ExpirationCallback.Pre(days(7), days(25), days(1)) {
|
||||
@Override
|
||||
public void on(License license) {
|
||||
String general = LoggerMessageFormat.format(null, "\n" +
|
||||
|
@ -174,9 +174,9 @@ public class LicensesService extends AbstractLifecycleComponent<LicensesService>
|
|||
}
|
||||
}
|
||||
}
|
||||
logger.error("{}", builder);
|
||||
logger.warn("{}", builder);
|
||||
} else {
|
||||
logger.error("{}", general);
|
||||
logger.warn("{}", general);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -206,9 +206,9 @@ public class LicensesService extends AbstractLifecycleComponent<LicensesService>
|
|||
}
|
||||
}
|
||||
}
|
||||
logger.error("{}", builder.toString());
|
||||
logger.warn("{}", builder.toString());
|
||||
} else {
|
||||
logger.error("{}", general);
|
||||
logger.warn("{}", general);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -238,9 +238,9 @@ public class LicensesService extends AbstractLifecycleComponent<LicensesService>
|
|||
}
|
||||
}
|
||||
}
|
||||
logger.error("{}", builder.toString());
|
||||
logger.warn("{}", builder.toString());
|
||||
} else {
|
||||
logger.error("{}", general);
|
||||
logger.warn("{}", general);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue