Skip to content

Commit

Permalink
replay: fix wrong logging for local route (#23652)
Browse files Browse the repository at this point in the history
  • Loading branch information
deanlee authored Jan 28, 2022
1 parent 520c99a commit fa3a787
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion selfdrive/ui/replay/replay.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
1 change: 1 addition & 0 deletions selfdrive/ui/replay/route.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class Route {
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); }
Expand Down

0 comments on commit fa3a787

Please sign in to comment.