Only log to console if asked to.