Ability to control logging level of sidebar

When I am developing my node-red application, sidebar is very useful for debugging, however the problem with this is that it only accept warn level or debug node. This is not good in production enviorment where we don't want debug level log to appear.

It would be great if i can use node.debug() and just set the sidebar to debug level in development enviornment and not have to comment out all the node.warn() method.