MCPcopy Create free account
hub / github.com/crate/crate / logVersion

Method logVersion

server/src/main/java/org/elasticsearch/node/Node.java:912–926  ·  view source on GitHub ↗
(Logger logger, JvmInfo jvmInfo)

Source from the content-addressed store, hash-verified

910 }
911
912 private void logVersion(Logger logger, JvmInfo jvmInfo) {
913 logger.info(
914 "version[{}], pid[{}], build[{}/{}], OS[{}/{}/{}], JVM[{}/{}/{}]",
915 Version.displayVersion(Version.CURRENT, Version.CURRENT.isSnapshot()),
916 jvmInfo.pid(),
917 Build.CURRENT.hashShort(),
918 Build.CURRENT.timestamp(),
919 Constants.OS_NAME,
920 Constants.OS_VERSION,
921 Constants.OS_ARCH,
922 Constants.JVM_VENDOR,
923 Constants.JVM_NAME,
924 Runtime.version());
925 warnIfPreRelease(Version.CURRENT, Version.CURRENT.isSnapshot(), logger);
926 }
927
928 private static void warnIfPreRelease(final Version version, final boolean isSnapshot, final Logger logger) {
929 if (!version.isRelease() || isSnapshot) {

Callers 1

NodeMethod · 0.95

Calls 8

displayVersionMethod · 0.95
warnIfPreReleaseMethod · 0.95
isSnapshotMethod · 0.80
pidMethod · 0.80
hashShortMethod · 0.80
infoMethod · 0.45
timestampMethod · 0.45
versionMethod · 0.45

Tested by

no test coverage detected