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

old-commit-hash: fa3a787e9a1294f1d0521d0c4bd27e952bb1d381
This commit is contained in:
Dean Lee
2022-01-29 04:03:19 +08:00
committed by GitHub
parent 212935863a
commit 1dae4aef54
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -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;
}
+1
View File
@@ -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); }