From 8fdb4957086a43f67ecc70569be0b3725ef9d3be Mon Sep 17 00:00:00 2001 From: Will Sargent Date: Mon, 26 Nov 2018 09:04:50 -0800 Subject: [PATCH] Ensure correct logger name is used (#292) --- .../src/main/scala/play/api/libs/ws/ahc/AhcLoggerFactory.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/play-ahc-ws-standalone/src/main/scala/play/api/libs/ws/ahc/AhcLoggerFactory.scala b/play-ahc-ws-standalone/src/main/scala/play/api/libs/ws/ahc/AhcLoggerFactory.scala index f8f2ef89..9fe091c2 100644 --- a/play-ahc-ws-standalone/src/main/scala/play/api/libs/ws/ahc/AhcLoggerFactory.scala +++ b/play-ahc-ws-standalone/src/main/scala/play/api/libs/ws/ahc/AhcLoggerFactory.scala @@ -10,7 +10,7 @@ class AhcLoggerFactory(lf: ILoggerFactory = SLF4JLoggerFactory.getILoggerFactory private[ahc] def createLogger(name: String) = { new NoDepsLogger { - private[ahc] val logger = lf.getLogger(this.getClass.getName) + private[ahc] val logger = lf.getLogger(name) def warn(msg: String): Unit = logger.warn(msg) def isDebugEnabled: Boolean = logger.isDebugEnabled