You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2018/06/19 07:53:34 UTC

[GitHub] markusthoemmes commented on a change in pull request #2282: Distributed tracing support #2192

markusthoemmes commented on a change in pull request #2282: Distributed tracing support #2192
URL: https://github.com/apache/incubator-openwhisk/pull/2282#discussion_r160671774
 
 

 ##########
 File path: common/scala/src/main/scala/whisk/common/TransactionId.scala
 ##########
 @@ -235,6 +236,16 @@ object TransactionId {
         }
       } getOrElse unknown
   }
+
+  /**
+    * Formats log message to include marker.
+    *
+    * @param message: The log message without the marker
+    * @param marker: The marker to add to the message
+    */
+  def createMessageWithMarker(message: String, marker: LogMarker): String = {
+    (Option(message).filter(_.trim.nonEmpty) ++ Some(marker)).mkString(" ")
+  }
 
 Review comment:
   This method seems redundant to the one above.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services