|
@@ -357,7 +357,7 @@ void Director::proxy_activate(void) {
|
|
|
time_t last_port_cim_report = galaxy.meta["port_CIM"].get<int>();
|
|
|
int seconds_ago = time_t_now() - last_port_cim_report;
|
|
|
int minutes_ago = seconds_ago / 60;
|
|
|
- BUGZ_LOG(fatal) << "port_CIM was " << minutes_ago << " minutes ago.";
|
|
|
+ BUGZ_LOG(warning) << "port_CIM was " << minutes_ago << " minutes ago.";
|
|
|
|
|
|
if (minutes_ago >= 60) {
|
|
|
float hours_ago = minutes_ago / 60.0;
|
|
@@ -368,7 +368,8 @@ void Director::proxy_activate(void) {
|
|
|
to_client(message);
|
|
|
}
|
|
|
} else {
|
|
|
- BUGZ_LOG(fatal) << "no meta port_CIM value seen.";
|
|
|
+ to_client("Warning: No CIM data.\n\r");
|
|
|
+ BUGZ_LOG(warning) << "no meta port_CIM value seen.";
|
|
|
}
|
|
|
|
|
|
chain = main_menu;
|
|
@@ -911,8 +912,10 @@ void Director::SL_cimline(const std::string &line) {
|
|
|
if (p.sector == 0)
|
|
|
BUGZ_LOG(fatal) << "portcim: FAIL [" << line << "]";
|
|
|
else
|
|
|
- BUGZ_LOG(trace) << "portcim: " << p;
|
|
|
- galaxy.add_port(p);
|
|
|
+ galaxy.add_port(p);
|
|
|
+ // else
|
|
|
+ // BUGZ_LOG(trace) << "portcim: " << p;
|
|
|
+
|
|
|
} else {
|
|
|
// warpcim
|
|
|
// BUGZ_LOG(fatal) << "warpcim: [" << line << "]";
|
|
@@ -925,7 +928,7 @@ void Director::SL_cimline(const std::string &line) {
|
|
|
sw.add(stoi(w));
|
|
|
}
|
|
|
}
|
|
|
- BUGZ_LOG(trace) << "warpcim: " << sw;
|
|
|
+ // BUGZ_LOG(trace) << "warpcim: " << sw;
|
|
|
galaxy.add_warp(sw);
|
|
|
}
|
|
|
}
|
|
@@ -1000,7 +1003,7 @@ void Director::SL_sectorline(const std::string &line) {
|
|
|
}
|
|
|
|
|
|
void Director::SL_densityline(const std::string &line) {
|
|
|
- BUGZ_LOG(fatal) << "densityline: [" << line << "]";
|
|
|
+ BUGZ_LOG(trace) << "densityline: [" << line << "]";
|
|
|
if (line.empty()) {
|
|
|
SL_parser = nullptr;
|
|
|
return;
|
|
@@ -1047,10 +1050,13 @@ void Director::SL_densityline(const std::string &line) {
|
|
|
galaxy.dscan.add_scan(d);
|
|
|
|
|
|
// Commit data
|
|
|
- BUGZ_LOG(warning) << "densityline: {sector=" << sector
|
|
|
+ /*
|
|
|
+ BUGZ_LOG(trace) << "densityline: {sector=" << sector
|
|
|
<< " density=" << density << " warps=" << warps
|
|
|
<< " navhaz=" << navhaz << " anom=" << anom
|
|
|
<< " known=" << known << "}";
|
|
|
+ */
|
|
|
+
|
|
|
/*
|
|
|
if (galaxy.meta["density"][sector]) {
|
|
|
galaxy.meta["density"][sector] = YAML::Node();
|