This is an automated email from the ASF dual-hosted git repository.
peacewong pushed a commit to branch dev-1.3.1
in repository https://gitbox.apache.org/repos/asf/incubator-linkis.git
The following commit(s) were added to refs/heads/dev-1.3.1 by this push:
new 55da24ab1 [BUG] update filter rule for methond of flush (#3694)
55da24ab1 is described below
commit 55da24ab154c250a82c1bb4b64a2defe80f0bdbe
Author: 人生有如两个橘子 <[email protected]>
AuthorDate: Fri Oct 21 14:11:25 2022 +0800
[BUG] update filter rule for methond of flush (#3694)
---
.../main/scala/org/apache/linkis/entrance/log/HDFSCacheLogWriter.scala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/linkis-computation-governance/linkis-entrance/src/main/scala/org/apache/linkis/entrance/log/HDFSCacheLogWriter.scala
b/linkis-computation-governance/linkis-entrance/src/main/scala/org/apache/linkis/entrance/log/HDFSCacheLogWriter.scala
index c3e04b665..8aa02f949 100644
---
a/linkis-computation-governance/linkis-entrance/src/main/scala/org/apache/linkis/entrance/log/HDFSCacheLogWriter.scala
+++
b/linkis-computation-governance/linkis-entrance/src/main/scala/org/apache/linkis/entrance/log/HDFSCacheLogWriter.scala
@@ -136,7 +136,7 @@ class HDFSCacheLogWriter(logPath: String, charset: String,
sharedCache: Cache, u
override def flush(): Unit = {
val sb = new StringBuilder
sharedCache.cachedLogs.toList
- .filter(StringUtils.isNotEmpty)
+ .filter(_ != null)
.foreach(sb.append(_).append("\n"))
sharedCache.cachedLogs.clear()
writeToFile(sb.toString())
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]