فهرست منبع

ScriptExplore changed log level of some output

  Specifically the sorting will now be listed in trace level rather than
info.
david 3 سال پیش
والد
کامیت
5c58d93bce
1فایلهای تغییر یافته به همراه3 افزوده شده و 17 حذف شده
  1. 3 17
      scripts.cpp

+ 3 - 17
scripts.cpp

@@ -371,18 +371,6 @@ void ScriptExplore::activate() {
 
   state = 1;
   to_server("I");
-  /*
-  director.chain = input;
-  input->activate();
-  if(director.galaxy.meta["ship"]) {
-    if(!director.galaxy.meta["ship"]["scanner"]) {
-      to_client("\n\rIt appears your ship doesn't have a long range
-  scanner.\n\r"); deactivate();
-    }
-  }
-  state = 1;
-  return;
-  */
 }
 
 void ScriptExplore::deactivate() {
@@ -412,10 +400,8 @@ void ScriptExplore::move_notify() {
       to_client("     " + alert() + message + reset() + "\n\r");
       BUGZ_LOG(warning) << "Target = " << target;
       next();
-      //deactivate();
     } else {
       std::string message = "Move failed: " + md->why_failed + "\n\r";
-      // to_client("No safe moves.\n\r");
       BUGZ_LOG(warning) << message;
       to_client(message);
       deactivate();
@@ -511,7 +497,7 @@ void ScriptExplore::next() {
     std::sort(sectors.begin(), sectors.end(), sort_warps);
   }
   for(int x = 0; x < 6; ++x) {
-    BUGZ_LOG(info) << "["
+    BUGZ_LOG(trace) << "["
                    << sectors[x].sector << ", "
                    << sectors[x].density << ", "
                    << sectors[x].warps << ", "
@@ -587,7 +573,7 @@ void ScriptExplore::server_prompt(const std::string &prompt) {
         }
       }
       state = 2;
-      BUGZ_LOG(info) << "state = 1, prompting for user input";
+      BUGZ_LOG(trace) << "state = 1, prompting for user input";
       director.chain = input;
       input->activate();
       return;
@@ -596,7 +582,7 @@ void ScriptExplore::server_prompt(const std::string &prompt) {
   if (state == 3) {
     if (at_command_prompt(prompt)) {
       state = 4;
-      BUGZ_LOG(info) << "state = 3, calculating next sector";
+      BUGZ_LOG(trace) << "state = 3, calculating next sector";
       next();
     }
   }