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/05/04 13:18:40 UTC

[GitHub] mdeuser commented on a change in pull request #292: Account for variable length timestamps when stripping logs

mdeuser commented on a change in pull request #292: Account for variable length timestamps when stripping logs
URL: https://github.com/apache/incubator-openwhisk-cli/pull/292#discussion_r186078848
 
 

 ##########
 File path: commands/util.go
 ##########
 @@ -283,7 +283,7 @@ func printFullActivationList(activations []whisk.Activation) {
 func printActivationLogs(logs []string) {
 	for _, log := range logs {
 		if Flags.activation.strip {
-			fmt.Printf("%s\n", log[39:])
+			fmt.Printf("%s\n", log[strings.Index(log, ": ")+2:])
 
 Review comment:
   or being completely timestamp format agnostic.. ready to ignore future timestamps with embedded ": "
   ```
   log[strings.Index(log, "stdout: ")+strings.Index(log, "stderr: ")+9:]
   ```

----------------------------------------------------------------
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