[Avida-cvs] [avida-svn] r929 - development/source/actions

brysonda at myxo.css.msu.edu brysonda at myxo.css.msu.edu
Tue Sep 5 19:47:57 PDT 2006


Author: brysonda
Date: 2006-09-05 22:47:57 -0400 (Tue, 05 Sep 2006)
New Revision: 929

Modified:
   development/source/actions/PrintActions.cc
Log:
Update SetVerbose command to accept NORMAL and to add a default level of NORMAL when an unrecognized value is supplied.

Modified: development/source/actions/PrintActions.cc
===================================================================
--- development/source/actions/PrintActions.cc	2006-09-06 02:42:32 UTC (rev 928)
+++ development/source/actions/PrintActions.cc	2006-09-06 02:47:57 UTC (rev 929)
@@ -1400,15 +1400,17 @@
     } else if (m_verbose.GetSize() == 0 && m_world->GetVerbosity() >= VERBOSE_ON) {
       m_world->SetVerbosity(VERBOSE_NORMAL);
     } else if (m_verbose == "SILENT") m_world->SetVerbosity(VERBOSE_SILENT);
+    else if (m_verbose == "NORMAL") m_world->SetVerbosity(VERBOSE_NORMAL);
     else if (m_verbose == "QUIET") m_world->SetVerbosity(VERBOSE_NORMAL);
     else if (m_verbose == "OFF") m_world->SetVerbosity(VERBOSE_NORMAL);
     else if (m_verbose == "ON") m_world->SetVerbosity(VERBOSE_ON);
     else if (m_verbose == "DETAILS") m_world->SetVerbosity(VERBOSE_DETAILS);
     else if (m_verbose == "HIGH") m_world->SetVerbosity(VERBOSE_DETAILS);
+    else m_world->SetVerbosity(VERBOSE_NORMAL);
     
     // Print out new verbose level (nothing for silent!)
     if (m_world->GetVerbosity() == VERBOSE_NORMAL) {
-      cout << "Verbose QUIET: Using minimal log messages..." << endl;
+      cout << "Verbose NORMAL: Using standard log messages..." << endl;
     } else if (m_world->GetVerbosity() == VERBOSE_ON) {
       cout << "Verbose ON: Using verbose log messages..." << endl;
     } else if (m_world->GetVerbosity() == VERBOSE_DETAILS) {




More information about the Avida-cvs mailing list