changeset 1203:923bd043006e

PcapUnidirectionalRawPacketEmitterTest - enable logger
author Devel 1
date Mon, 22 Jun 2020 13:47:11 +0200
parents 19f4e77ac508
children 35209b169bcf
files stress-tester/src/test/java/com/passus/st/emitter/raw/PcapUnidirectionalRawPacketEmitterTest.java
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/stress-tester/src/test/java/com/passus/st/emitter/raw/PcapUnidirectionalRawPacketEmitterTest.java	Mon Jun 22 13:35:38 2020 +0200
+++ b/stress-tester/src/test/java/com/passus/st/emitter/raw/PcapUnidirectionalRawPacketEmitterTest.java	Mon Jun 22 13:47:11 2020 +0200
@@ -1,6 +1,5 @@
 package com.passus.st.emitter.raw;
 
-import com.passus.commons.Log4jConfigurationFactory;
 import com.passus.data.HeapByteBuff;
 import com.passus.net.session.Session;
 import com.passus.st.AbstractWireMockTest;
@@ -15,8 +14,10 @@
 
 public class PcapUnidirectionalRawPacketEmitterTest extends AbstractWireMockTest {
 
-    static void enableLogger() {
-        Log4jConfigurationFactory.enableFactory("debug");
+    static {
+        com.passus.st.Log4jConfigurationFactory.enableFactory("debug");
+        com.passus.commons.Log4jConfigurationFactory.enableFactory("debug");
+        System.out.println("enabled");
     }
 
     public PcapUnidirectionalRawPacketEmitter createEmitter(SessionMapper mapper) throws Exception {