microsoft / StoreBroker

A PowerShell module that leverages the Windows Store Submission API to allow easy automation of application submissions to the Windows Store. The master branch is stable and the v2 branch is under active development.
Other
97 stars 40 forks source link

Refactor logic to exclude logging of fileSasUri in parameter objects #257

Closed joseartrivera closed 3 months ago

joseartrivera commented 3 months ago

Need to not log filesas objects in Write-InvocationLog when they are the properties of PSCustomObjects or Hashtables that are part of the passed in parameters.

Factor out the existing logic in Write-InputObject into a helper function that only does the copy & replace of the object.

Use that in Write-InvocationLog whenever a parameter is a PSCustomObject or Hashtable.