{
SGPath path(_pathNode->getStringValue());
if (path.exists()) {
- SG_LOG(SG_AUTOPILOT, SG_INFO, "loading flight-plan from:" << path.str());
+ SG_LOG(SG_AUTOPILOT, SG_INFO, "loading flight-plan from: " << path.str());
loadRoute(path);
}
writeProperties(path.str(), d, true /* write-all */);
return true;
} catch (sg_exception& e) {
- SG_LOG(SG_IO, SG_WARN, "failed to save flight-plan:" << e.getMessage());
+ SG_LOG(SG_IO, SG_ALERT, "Failed to save flight-plan '" << path.str() << "'. " << e.getMessage());
return false;
}
}
}
return true;
} catch (sg_exception& e) {
- SG_LOG(SG_IO, SG_WARN, "failed to load flight-plan (from '" << e.getOrigin()
- << "'):" << e.getMessage());
+ SG_LOG(SG_IO, SG_ALERT, "Failed to load flight-plan '" << e.getOrigin()
+ << "'. " << e.getMessage());
return false;
}
}
WayptRef w = waypointFromString(line);
if (!w) {
- throw sg_io_exception("failed to create waypoint from line:" + line);
+ throw sg_io_exception("Failed to create waypoint from line '" + line + "'.");
}
wpts.push_back(w);
_route = wpts;
return true;
} catch (sg_exception& e) {
- SG_LOG(SG_IO, SG_WARN, "failed to load route from:" << path.str() << ":" << e.getMessage());
+ SG_LOG(SG_IO, SG_ALERT, "Failed to load route from: '" << path.str() << "'. " << e.getMessage());
return false;
}
}