diff options
Diffstat (limited to 'jsonrpc/src/main')
-rw-r--r-- | jsonrpc/src/main/java/com/orbekk/same/SameServiceImpl.java | 5 | ||||
-rw-r--r-- | jsonrpc/src/main/resources/log4j.properties | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/jsonrpc/src/main/java/com/orbekk/same/SameServiceImpl.java b/jsonrpc/src/main/java/com/orbekk/same/SameServiceImpl.java index 56a0fa1..7e1de00 100644 --- a/jsonrpc/src/main/java/com/orbekk/same/SameServiceImpl.java +++ b/jsonrpc/src/main/java/com/orbekk/same/SameServiceImpl.java @@ -23,8 +23,9 @@ public class SameServiceImpl implements SameService { @Override public String participateNetwork(String networkName) { logger.info("Got participation request."); - if (networkName != this.networkName) { - logger.info("Network name mismatch."); + if (!networkName.equals(this.networkName)) { + logger.warn("Client tried to join {}, but network name is {}.", + networkName, this.networkName); } return "<Not implemented>"; } diff --git a/jsonrpc/src/main/resources/log4j.properties b/jsonrpc/src/main/resources/log4j.properties index 6ca6c6f..70f8a5f 100644 --- a/jsonrpc/src/main/resources/log4j.properties +++ b/jsonrpc/src/main/resources/log4j.properties @@ -1,5 +1,7 @@ -log4j.rootLogger=DEBUG, A1 +log4j.rootLogger=INFO, A1 +log4j.com.orbekk=DEBUG, A1 log4j.appender.A1=org.apache.log4j.ConsoleAppender log4j.appender.A1.layout=org.apache.log4j.PatternLayout log4j.appender.A1.layout.ConversionPattern=%d{HH:mm:ss,SSS} %-5p [%c] - %m%n + |