Skip to content

Commit 3a821e3

Browse files
author
Mathias Bogaert
committed
Make lazy logger @volatile.
1 parent 00ccdef commit 3a821e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/scala/com/typesafe/scalalogging/Logging.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import org.slf4j.LoggerFactory
2424
*/
2525
trait LazyLogging {
2626

27-
protected lazy val logger: Logger =
27+
@volatile protected lazy val logger: Logger =
2828
Logger(LoggerFactory.getLogger(getClass.getName))
2929
}
3030

0 commit comments

Comments
 (0)