Merge pull request elastic/elasticsearch#2259 from areek/fix/2231
Fix license expiry log message Original commit: elastic/x-pack-elasticsearch@280ba28095
This commit is contained in:
commit
7d232e4133
|
@ -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