PeerDiscovery tracing adjusted
This commit is contained in:
parent
2156177970
commit
a9b890a86d
|
@ -28,7 +28,7 @@ import static org.ethereum.net.Command.*;
|
||||||
*/
|
*/
|
||||||
public class EthereumPeerTasterHandler extends ChannelInboundHandlerAdapter {
|
public class EthereumPeerTasterHandler extends ChannelInboundHandlerAdapter {
|
||||||
|
|
||||||
Logger logger = LoggerFactory.getLogger("wire");
|
Logger logger = LoggerFactory.getLogger("peerdiscovery");
|
||||||
|
|
||||||
Timer timer = null;
|
Timer timer = null;
|
||||||
private final static byte[] MAGIC_PREFIX = {(byte)0x22, (byte)0x40, (byte)0x08, (byte)0x91};
|
private final static byte[] MAGIC_PREFIX = {(byte)0x22, (byte)0x40, (byte)0x08, (byte)0x91};
|
||||||
|
|
|
@ -8,7 +8,7 @@ import java.util.concurrent.ThreadPoolExecutor;
|
||||||
|
|
||||||
public class PeerDiscoveryMonitorThread implements Runnable
|
public class PeerDiscoveryMonitorThread implements Runnable
|
||||||
{
|
{
|
||||||
Logger logger = LoggerFactory.getLogger(getClass());
|
Logger logger = LoggerFactory.getLogger("peerdiscovery");
|
||||||
|
|
||||||
private ThreadPoolExecutor executor;
|
private ThreadPoolExecutor executor;
|
||||||
private int seconds;
|
private int seconds;
|
||||||
|
|
|
@ -19,7 +19,7 @@ import static org.ethereum.config.SystemProperties.CONFIG;
|
||||||
*/
|
*/
|
||||||
public class PeerTaster {
|
public class PeerTaster {
|
||||||
|
|
||||||
Logger logger = LoggerFactory.getLogger(getClass());
|
Logger logger = LoggerFactory.getLogger("peerdiscovery");
|
||||||
|
|
||||||
PeerListener peerListener;
|
PeerListener peerListener;
|
||||||
Channel channel;
|
Channel channel;
|
||||||
|
|
|
@ -14,7 +14,7 @@ import java.util.concurrent.ThreadPoolExecutor;
|
||||||
|
|
||||||
public class RejectedExecutionHandlerImpl implements RejectedExecutionHandler {
|
public class RejectedExecutionHandlerImpl implements RejectedExecutionHandler {
|
||||||
|
|
||||||
Logger logger = LoggerFactory.getLogger(getClass());
|
Logger logger = LoggerFactory.getLogger("peerdiscovery");
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void rejectedExecution(Runnable r, ThreadPoolExecutor executor) {
|
public void rejectedExecution(Runnable r, ThreadPoolExecutor executor) {
|
||||||
|
|
|
@ -14,7 +14,7 @@ import java.util.concurrent.ThreadPoolExecutor;
|
||||||
|
|
||||||
public class WorkerThread implements Runnable {
|
public class WorkerThread implements Runnable {
|
||||||
|
|
||||||
Logger logger = LoggerFactory.getLogger(getClass());
|
Logger logger = LoggerFactory.getLogger("peerdiscovery");
|
||||||
|
|
||||||
ThreadPoolExecutor poolExecutor;
|
ThreadPoolExecutor poolExecutor;
|
||||||
private PeerData peerData;
|
private PeerData peerData;
|
||||||
|
|
|
@ -9,12 +9,12 @@ log4j.appender.stdout.layout.ConversionPattern= %d{HH:mm:ss} [%c{1}] %m%n
|
||||||
|
|
||||||
# filter noisy classes
|
# filter noisy classes
|
||||||
log4j.logger.org.ethereum.net = INFO
|
log4j.logger.org.ethereum.net = INFO
|
||||||
log4j.logger.org.ethereum.net.peerdiscovery = WARN
|
log4j.logger.peerdiscovery = FATAL
|
||||||
log4j.logger.java.nio = WARN
|
log4j.logger.java.nio = WARN
|
||||||
log4j.logger.io.netty = FATAL
|
log4j.logger.io.netty = FATAL
|
||||||
log4j.logger.org.ethereum.core = FATAL
|
log4j.logger.org.ethereum.core = FATAL
|
||||||
log4j.logger.wire = INFO
|
log4j.logger.wire = DEBUG
|
||||||
log4j.logger.VM = DEBUG
|
log4j.logger.VM = DEBUG
|
||||||
log4j.logger.main = DEBUG
|
log4j.logger.main = INFO
|
||||||
log4j.logger.state = DEBUG
|
log4j.logger.state = DEBUG
|
||||||
log4j.logger.blockchain = INFO
|
log4j.logger.blockchain = DEBUG
|
||||||
|
|
Loading…
Reference in New Issue