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 2020/03/07 13:55:11 UTC

[GitHub] [openwhisk] rabbah opened a new issue #4853: Log collection is altering log output from functions

rabbah opened a new issue #4853: Log collection is altering log output from functions
URL: https://github.com/apache/openwhisk/issues/4853
 
 
   During log collection, the invoker is changing the log format produced by functions. It current strips both the leading and trailing white space. The intent was to only strip the trailing line carriage return or new line.
   
   The bug/patch is in `DockerToActivationLogStore`:
   
   ```
   --- a/common/scala/src/main/scala/org/apache/openwhisk/core/containerpool/logging/DockerToActivationLogStore.scala
   +++ b/common/scala/src/main/scala/org/apache/openwhisk/core/containerpool/logging/DockerToActivationLogStore.scala
   @@ -39,7 +39,7 @@ import spray.json._
     * Represents a single log line as read from a docker log
     */
    protected[core] case class LogLine(time: String, stream: String, log: String) {
   -  def toFormattedString = f"$time%-30s $stream: ${log.trim}"
   +  def toFormattedString = f"$time%-30s $stream: ${log.stripLineEnd}"
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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

[GitHub] [openwhisk] rabbah closed issue #4853: Log collection is altering log output from functions

Posted by GitBox <gi...@apache.org>.
rabbah closed issue #4853: Log collection is altering log output from functions
URL: https://github.com/apache/openwhisk/issues/4853
 
 
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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