=act Fix warning log that was published as error #21765

Fixes #21765
This commit is contained in:
Björn Antonsson 2016-10-31 10:26:16 +01:00
parent 2a6e62a13b
commit ca684e9beb

View file

@ -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.