Permalink
Browse files

Updated to Scribe 2.7 and Undertow 2.0.16

  • Loading branch information...
darkfrog26 committed Dec 2, 2018
1 parent 3cb02ca commit 736d28274640749bacc5ed049cf0209443925732
@@ -9,6 +9,7 @@ import io.youi.dom._
import io.youi.net.URL
import profig.JsonUtil
import scribe.LogRecord
import scribe.output.LogOutput
import scribe.writer.Writer
import scala.concurrent.ExecutionContext.Implicits.global
@@ -55,7 +56,7 @@ trait ClientApplication extends YouIApplication with ScreenManager {
object ClientApplication {
lazy val logWriter: Writer = new Writer {
override def write[M](record: LogRecord[M], output: String): Unit = sendLog(JavaScriptLog(output))
override def write[M](record: LogRecord[M], output: LogOutput): Unit = sendLog(JavaScriptLog(output.plainText))
}
private var instance: ClientApplication = _
@@ -5,6 +5,7 @@ import io.youi.{History, _}
import io.youi.net.URL
import io.youi.stream.StreamURL
import org.scalajs.dom.{ErrorEvent, Event}
import scribe.output.LogOutput
import scribe.writer.Writer
import scribe.{Level, LogRecord}
@@ -39,7 +40,7 @@ object ErrorTrace extends Writer {
toError(message, source, line, column, Some(throwable))
}
override def write[M](record: LogRecord[M], output: String): Unit = if (record.level.value >= Level.Error.value) {
override def write[M](record: LogRecord[M], output: LogOutput): Unit = if (record.level.value >= Level.Error.value) {
val value = record.m
value match {
case evt: Event if evt.`type` == "error" => ClientApplication.sendError(evt.asInstanceOf[ErrorEvent])
@@ -27,7 +27,7 @@ developers in ThisBuild := List(
)
val profigVersion = "2.3.3"
val scribeVersion = "2.6.0"
val scribeVersion = "2.7.0"
val powerScalaVersion = "2.0.5"
val reactifyVersion = "3.0.3"
val hasherVersion = "1.2.1"
@@ -42,7 +42,7 @@ val scalaJSDOM = "0.9.6"
val okHttpVersion = "3.11.0"
val circeVersion = "0.10.1"
val uaDetectorVersion = "2014.10"
val undertowVersion = "2.0.15.Final"
val undertowVersion = "2.0.16.Final"
val closureCompilerVersion = "v20181008"
val jSoupVersion = "1.11.3"
val scalaXMLVersion = "1.1.1"

0 comments on commit 736d282

Please sign in to comment.