diff --git a/generators/gatling/templates/src/test/java/gatling/simulations/_entityClass_GatlingTest.java.ejs b/generators/gatling/templates/src/test/java/gatling/simulations/_entityClass_GatlingTest.java.ejs index b2c18c23d4c1..6d2ce6f0614f 100644 --- a/generators/gatling/templates/src/test/java/gatling/simulations/_entityClass_GatlingTest.java.ejs +++ b/generators/gatling/templates/src/test/java/gatling/simulations/_entityClass_GatlingTest.java.ejs @@ -28,7 +28,6 @@ import static io.gatling.javaapi.http.HttpDsl.headerRegex; import static io.gatling.javaapi.http.HttpDsl.http; import static io.gatling.javaapi.http.HttpDsl.status; -import ch.qos.logback.classic.LoggerContext; import java.time.Duration; import java.util.Map; import java.util.Optional; @@ -36,7 +35,6 @@ import io.gatling.javaapi.core.ChainBuilder; import io.gatling.javaapi.core.ScenarioBuilder; import io.gatling.javaapi.core.Simulation; import io.gatling.javaapi.http.HttpProtocolBuilder; -import org.slf4j.LoggerFactory; /** * Performance test for the <%= entityClass %> entity. @@ -45,14 +43,6 @@ import org.slf4j.LoggerFactory; */ public class <%= entityClass %>GatlingTest extends Simulation { - LoggerContext context = (LoggerContext) LoggerFactory.getILoggerFactory(); - { - // Log all HTTP requests - //context.getLogger("io.gatling.http").setLevel(Level.valueOf("TRACE")); - // Log failed HTTP requests - //context.getLogger("io.gatling.http").setLevel(Level.valueOf("DEBUG")); - } - String baseURL = Optional.ofNullable(System.getProperty("baseURL")).orElse("http://localhost:<%= serverPort %>"); HttpProtocolBuilder httpConf = http