Skip to content

Commit

Permalink
Log version immediately on startup.
Browse files Browse the repository at this point in the history
  • Loading branch information
leMaik committed Aug 29, 2016
1 parent c42ff23 commit d8278c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 4 additions & 0 deletions src/main/java/de/craften/craftenlauncher/Application.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ public static void main(String[] args) throws CraftenLogicException {
*/
private static void logSystemInfo() {
LOGGER.info("Launcher started!");

Package objPackage = Application.class.getPackage();
LOGGER.info("Launcher version: " + objPackage.getSpecificationVersion());

LOGGER.debug("OS : " + System.getProperty("os.name"));
LOGGER.debug("OS Arch: " + OSHelper.getOSArch());
LOGGER.debug("OS Java Arch : " + System.getProperty("os.arch"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,12 @@ public class LogicController {
private SkinVM mSkinVM;

public LogicController() {
logLauncherVersion();
mAuthService = new AuthenticationService();
mProfiles = new Profiles();
mDownloadVM = new DownloadVM();
mMincraftArgs = new HashMap<>();
}

private void logLauncherVersion() {
Package objPackage = this.getClass().getPackage();
LOGGER.info("Launcher version: " + objPackage.getSpecificationVersion());
}

/**
* Inits the logic layer.
*/
Expand Down

0 comments on commit d8278c0

Please sign in to comment.