Skip to content

Commit

Permalink
Merge pull request sbt#7548 from szeiger/wip/fix-string-logging
Browse files Browse the repository at this point in the history
Fix logging of raw strings
  • Loading branch information
eed3si9n authored May 5, 2024
2 parents 1c7c621 + 26cdfa8 commit 8fe6e4e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import org.apache.logging.log4j.{ Level => XLevel }
import sbt.internal.util.ConsoleAppender._
import sbt.util._
import org.apache.logging.log4j.core.AbstractLogEvent
import org.apache.logging.log4j.message.StringFormatterMessageFactory
import org.apache.logging.log4j.message.SimpleMessageFactory
import java.util.concurrent.atomic.AtomicReference

object ConsoleLogger {
Expand Down Expand Up @@ -598,7 +598,7 @@ private[sbt] class ConsoleAppenderFromLog4J(
delegate.append(new AbstractLogEvent {
override def getLevel(): XLevel = ConsoleAppender.toXLevel(level)
override def getMessage(): Message =
StringFormatterMessageFactory.INSTANCE.newMessage(message.toString, Array.empty)
SimpleMessageFactory.INSTANCE.newMessage(message.toString, Array.empty)
})
}
}
Expand Down

0 comments on commit 8fe6e4e

Please sign in to comment.