We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4da0af commit 4da644fCopy full SHA for 4da644f
json-log-viewer/shared/src/main/scala/ru/d10xa/jsonlogviewer/LogViewerStream.scala
@@ -13,6 +13,9 @@ import ru.d10xa.jsonlogviewer.logfmt.LogfmtLogLineParser
13
import ru.d10xa.jsonlogviewer.shell.ShellImpl
14
15
import scala.util.matching.Regex
16
+import scala.util.Failure
17
+import scala.util.Success
18
+import scala.util.Try
19
20
object LogViewerStream {
21
@@ -118,7 +121,12 @@ object LogViewerStream {
118
121
effectiveConfig.timestamp.before
119
122
)
120
123
- .map(outputLineFormatter.formatLine)
124
+ .map(pr =>
125
+ Try(outputLineFormatter.formatLine(pr)) match {
126
+ case Success(formatted) => formatted.toString
127
+ case Failure(_) => pr.raw
128
+ }
129
+ )
130
.map(_.toString)
131
} yield evaluatedLine
132
0 commit comments