-
Notifications
You must be signed in to change notification settings - Fork 54
Description
When an Activity function writes to Output, this data becomes the return value of the Activity, by definition. This is different from how Output is treated in non-Activity functions: data written to Output is logged, but the function must explicitly invoke Push-OutputBinding
for the function to actually propagate this data somewhere else.
The problem is that Activity function Output is not just returned to the invoker, but it is also logged, like we do for non-Activity functions. This may lead to unintentional information disclosure, and just pollute logs with unneeded data. There is no way to selectively turn off logging of Activity output data.
We've intentionally made Activity functions special, and Output is treated differently. So, we should go all the way and exclude this data from logs. If the user does want this data to be traced, they are free to do this explicitly with Write-Verbose
etc.