We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef7a61c commit 3fa6fceCopy full SHA for 3fa6fce
server/src/main/java/sc/server/Application.java
@@ -9,6 +9,9 @@
9
10
import java.io.File;
11
import java.io.IOException;
12
+import java.nio.file.Files;
13
+import java.nio.file.Paths;
14
+import java.util.List;
15
16
public final class Application {
17
@@ -34,6 +37,13 @@ public static void main(String[] params) {
34
37
}
35
38
logger.info("Server is starting up...");
36
39
40
+ try {
41
+ List<String> version = Files.readAllLines(Paths.get("version"));
42
+ logger.info("Running version {}", version);
43
+ } catch(IOException ignored) {
44
+ logger.debug("Could not determine running version");
45
+ }
46
+
47
// register crtl + c
48
addShutdownHook();
49
long start = System.currentTimeMillis();
0 commit comments