Skip to content

Commit

Permalink
=act Fix warning log that was published as error akka#21765
Browse files Browse the repository at this point in the history
  • Loading branch information
bantonsson committed Oct 31, 2016
1 parent 2a6e62a commit ca684e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion akka-actor/src/main/scala/akka/event/Logging.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1505,7 +1505,7 @@ class MarkerLoggingAdapter(
* @see [[LoggingAdapter]]
*/
def warning(marker: LogMarker, message: String): Unit =
if (isErrorEnabled) bus.publish(Error(logSource, logClass, message, mdc, marker))
if (isWarningEnabled) bus.publish(Warning(logSource, logClass, message, mdc, marker))

/**
* Message template with 1 replacement argument.
Expand Down

0 comments on commit ca684e9

Please sign in to comment.