How do I ignore messages written to stderr?

My step calls a command that writes diagnostic info to stderr. Is there a way to ignore these errors?

https://octopus.com/docs/deployment-examples/custom-scripts/logging-messages-in-scripts#service-message

Before the command that writes to stderr, you can write a system message to standard out to either ignore the logs completely or to write them as verbose logs.

##octopus[stderr-ignore]
##octopus[stderr-progress]

Without system message:

With the stderr-progress message:

Logging can be set back to normal with either:

##octopus[stderr-error]
##octopus[stderr-default]