You can configure a Task (or any other Frends Element) to skip all result and parameter logging to make sure no sensitive information will ever be logged.
Even when an error occurs nothing will be logged if this setting is set to true.
This setting can be found on the Process Editor -> Element Parameter Editor -> Show advanced settings -> Skip logging result and parameters