Don't log to console if debugging disabled.