replay: fix wrong logging for local route (#23652)

old-commit-hash: fa3a787e9a
commatwo_master
Dean Lee 3 years ago committed by GitHub
parent 212935863a
commit 1dae4aef54
  1. 3
      selfdrive/ui/replay/replay.cc
  2. 1
      selfdrive/ui/replay/route.h

@ -56,7 +56,8 @@ void Replay::stop() {
bool Replay::load() {
if (!route_->load()) {
qCritical() << "failed to load route" << route_->name() << "from server";
qCritical() << "failed to load route" << route_->name()
<< "from" << (route_->dir().isEmpty() ? "server" : route_->dir());
return false;
}

@ -27,6 +27,7 @@ public:
Route(const QString &route, const QString &data_dir = {});
bool load();
inline const QString &name() const { return route_.str; }
inline const QString &dir() const { return data_dir_; }
inline const RouteIdentifier &identifier() const { return route_; }
inline const std::map<int, SegmentFile> &segments() const { return segments_; }
inline const SegmentFile &at(int n) { return segments_.at(n); }

Loading…
Cancel
Save