Avoid going through printf when not in debug mode