Update keystore and fix gunbot location check

This commit is contained in:
elroy 2017-07-10 22:55:16 +02:00
parent 822eaf18ac
commit ceca1a658d
4 changed files with 4 additions and 8 deletions

View File

@ -5,7 +5,7 @@
<groupId>nl.komtek</groupId> <groupId>nl.komtek</groupId>
<artifactId>GunbotProxyCommunity</artifactId> <artifactId>GunbotProxyCommunity</artifactId>
<version>0.9.6</version> <version>0.9.7</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<name>GunbotProxyCommunity</name> <name>GunbotProxyCommunity</name>

View File

@ -93,7 +93,7 @@ public class CheckSetupController {
if (!gunbotLocation.startsWith("file://")) { if (!gunbotLocation.startsWith("file://")) {
setupData.put("Gunbot location", "Your file location should start with 'file://'"); setupData.put("Gunbot location", "Your file location should start with 'file://'");
} else { } else {
File file = new File(gunbotLocation); File file = new File(gunbotLocation.replace("file://",""));
if (file.exists()) { if (file.exists()) {
setupData.put("Gunbot location", "Looking good!"); setupData.put("Gunbot location", "Looking good!");
} else { } else {

View File

@ -10,7 +10,6 @@ import net.jodah.failsafe.Failsafe;
import net.jodah.failsafe.RetryPolicy; import net.jodah.failsafe.RetryPolicy;
import nl.komtek.gpi.utils.ProxyHandledException; import nl.komtek.gpi.utils.ProxyHandledException;
import nl.komtek.gpi.utils.Util; import nl.komtek.gpi.utils.Util;
import org.apache.logging.log4j.Level;
import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
@ -177,11 +176,8 @@ public class GunbotProxyService {
.onFailedAttempt(this::handleException) .onFailedAttempt(this::handleException)
.get(() -> analyzeResult(publicClient.returnTicker())); .get(() -> analyzeResult(publicClient.returnTicker()));
if (logger.getLevel().isMoreSpecificThan(Level.INFO)) { logger.debug("ticker: " + result);
logger.info("ticker updated");
} else {
logger.info("ticker: " + result);
}
return result; return result;
} }

Binary file not shown.