Another approach is make use of the logging levels available through the admin console.
We created “wrapper flows” around the debugLog called debug, info, warn, and error. Within each flow we set a different log level. In dev,qa, prod etc… you can set the logs to the appropriate level as you require.
In practice - our info logs are extremely valuable in tracking down a problem in production.
I’m not sure I like the idea of leaving save/restoreToPipeline in production code, as it has the potential of inadvertantly affecting the behavior. If you forget to disable the code as you migrate up - its trouble. Its a great tool for dev - but I would take them out prior to migration.
My recommendation would be to use logging levels and remove the save/restoreToPipeline from code.
#webMethods#Integration-Server-and-ESB#webMethods-General#webMethods-Upgrade