This is an automated email from the ASF dual-hosted git repository.
style95 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwhisk.git
The following commit(s) were added to refs/heads/master by this push:
new 2fe4ec8 Adjust log format (#4928)
2fe4ec8 is described below
commit 2fe4ec8e5301dd6aa8303d187fd83be312e2bdc4
Author: jiangpch <[email protected]>
AuthorDate: Tue Sep 29 12:46:13 2020 +0800
Adjust log format (#4928)
Co-authored-by: jiang.pengcheng <[email protected]>
---
common/scala/src/main/scala/org/apache/openwhisk/common/Logging.scala | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/common/scala/src/main/scala/org/apache/openwhisk/common/Logging.scala
b/common/scala/src/main/scala/org/apache/openwhisk/common/Logging.scala
index 15c1bb3..a87d578 100644
--- a/common/scala/src/main/scala/org/apache/openwhisk/common/Logging.scala
+++ b/common/scala/src/main/scala/org/apache/openwhisk/common/Logging.scala
@@ -101,8 +101,8 @@ class AkkaLogging(loggingAdapter: LoggingAdapter) extends
Logging {
}
protected def format(id: TransactionId, name: String, logmsg: String) = {
- val currentId = if (id.hasParent) id else ""
- s"[${id.root}] [$currentId] [$name] $logmsg"
+ val currentId = if (id.hasParent) s"[$id] " else ""
+ s"[${id.root}] $currentId[$name] $logmsg"
}
}