How do I ignore messages written to stderr?

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]