Skip to content

Commit

Permalink
Log PID for better identification
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenLoomanEnexis committed Sep 13, 2023
1 parent 922fc33 commit 25e2eb7
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ public MagikLanguageServer() {
public CompletableFuture<InitializeResult> initialize(final InitializeParams params) {
LOGGER.trace("initialize");

// Log PID.
final ProcessHandle processHandle = ProcessHandle.current();
LOGGER.info("PID: {}", processHandle.pid());

// Log server version.
final String version = this.getClass().getPackage().getImplementationVersion();
LOGGER.info("Version: {}", version);
Expand Down

0 comments on commit 25e2eb7

Please sign in to comment.