Skip to content

Commit

Permalink
fix a logger level to warn
Browse files Browse the repository at this point in the history
fix comment position
  • Loading branch information
leaf-soba committed Sep 27, 2024
1 parent f852466 commit 1921411
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/jabref/Launcher.java
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,9 @@ private static boolean handleMultipleAppInstances(String[] args, RemotePreferenc
RemoteClient remoteClient = new RemoteClient(remotePreferences.getPort());
if (remoteClient.ping()) {
LOGGER.debug("Pinging other instance succeeded.");
// There is already a server out there, avoid showing log "Passing arguments" while no arguments are provided.
if (args.length == 0) {
LOGGER.debug("This JabRef instance is already running. Please switch to that instance.");
// There is already a server out there, avoid showing log "Passing arguments" while no arguments are provided.
LOGGER.warn("This JabRef instance is already running. Please switch to that instance.");
} else {
// We are not alone, there is already a server out there, send command line arguments to other instance
LOGGER.debug("Passing arguments passed on to running JabRef...");
Expand Down

0 comments on commit 1921411

Please sign in to comment.