apache / apache/openwhisk

Doc issue concerning logs in results, and blocking

Open
#1,853 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Scala
Stars
6.8k
Forks
1.2k
Avg merge
2d 14h
Merged PRs (30d)
2

Description

The docs have this to say about the logs portion of activation results:

An array of strings with the logs that are produced by the action during its activation. Each array element corresponds to a line output to stdout or stderr by the action.

So one would think - if I do console.log(..) in an action, and then run the action with the blocking flag, it will include the log. But that is not the case. Rather (and this is thanks to sjfink in the Slack channel), OW only blocks for the result of the action, not the "gathering of logs". While this is probably an edge case, we should document that the fact you may need to fetch the activation record a few seconds later to properly see all the logs. (Or use the poll feature.)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.