Why no message in the wrapper log?

This script is running in the client/designer. Your scripts that execute in the gateway scope will go to the wrapper.log, but these client- and designer-scoped scripts will end up in the client console.