disable debug and trace logs for release builds

this increses performance on release builds