From e80d5e071a06d16a0a78e23541eb38c491335475 Mon Sep 17 00:00:00 2001 From: Duarte Nunes Date: Wed, 2 Jul 2014 10:17:04 +0200 Subject: [PATCH] =act #15488 Removed guard around _logLevel This patch removes a lock around the getter of _logLevel. The setter is still guarded for consistency. Note that out of thin-air reads, while not excluded under the current JMM, are forbidden by current hardware. Signed-off-by: Duarte Nunes --- akka-actor/src/main/scala/akka/event/Logging.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/akka-actor/src/main/scala/akka/event/Logging.scala b/akka-actor/src/main/scala/akka/event/Logging.scala index db919e89d1..437901a7c8 100644 --- a/akka-actor/src/main/scala/akka/event/Logging.scala +++ b/akka-actor/src/main/scala/akka/event/Logging.scala @@ -39,7 +39,7 @@ trait LoggingBus extends ActorEventBus { /** * Query currently set log level. See object Logging for more information. */ - def logLevel = guard.withGuard { _logLevel } + def logLevel = _logLevel /** * Change log level: default loggers (i.e. from configuration file) are