Only log versions unless `enable_logging` is true.