Changeset da7ef9 for src/Actions


Ignore:
Timestamp:
Jun 20, 2017, 8:01:46 PM (8 years ago)
Author:
Frederik Heber <frederik.heber@…>
Branches:
Action_Thermostats, Add_AtomRandomPerturbation, Add_SelectAtomByNameAction, Adding_Graph_to_ChangeBondActions, Adding_MD_integration_tests, Adding_StructOpt_integration_tests, AutomationFragmentation_failures, Candidate_v1.6.1, ChangeBugEmailaddress, ChemicalSpaceEvaluator, Docu_Python_wait, EmpiricalPotential_contain_HomologyGraph_documentation, Enhance_userguide, Enhanced_StructuralOptimization, Enhanced_StructuralOptimization_continued, Example_ManyWaysToTranslateAtom, Exclude_Hydrogens_annealWithBondGraph, Fix_StatusMsg, Fix_StepWorldTime_single_argument, Fix_Verbose_Codepatterns, ForceAnnealing_oldresults, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_continued, ForceAnnealing_with_BondGraph_continued_betteresults, ForceAnnealing_with_BondGraph_contraction-expansion, Gui_displays_atomic_force_velocity, IndependentFragmentGrids_IntegrationTest, JobMarket_RobustOnKillsSegFaults, JobMarket_StableWorkerPool, PythonUI_with_named_parameters, QtGui_reactivate_TimeChanged_changes, Recreated_GuiChecks, StoppableMakroAction, TremoloParser_IncreasedPrecision, TremoloParser_MultipleTimesteps
Children:
15d21e
Parents:
536b13
git-author:
Frederik Heber <heber@…> (03/23/17 03:34:50)
git-committer:
Frederik Heber <frederik.heber@…> (06/20/17 20:01:46)
Message:

FIX: STATUS msg only pushed to GUI, now also always in log.

Location:
src/Actions
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/Action.hpp

    r536b13 rda7ef9  
    2929 */
    3030#ifndef STATUS
    31 #define STATUS(msg) pushStatus(msg)
     31#define STATUS(msg) \
     32  pushStatus(msg); \
     33  LOG(0, "STATUS: " << msg)
    3234#endif
    3335
  • src/Actions/PotentialAction/ParsePotentialsAction.cpp

    r536b13 rda7ef9  
    7373        deserialize();
    7474      } catch (SerializerMissingValueException &e) {
    75         if (const std::string *key = boost::get_error_info<SerializerKey>(e))
     75        if (const std::string *key = boost::get_error_info<SerializerKey>(e)) {
    7676          STATUS("Missing value when parsing information for potential "+*key+".");
    77         else
     77        } else
    7878          STATUS("Missing value parsing information for potential with unknown key.");
    7979        return Action::failure;
    8080      } catch (SerializerIllegalKeyException &e) {
    81         if (const std::string *key = boost::get_error_info<SerializerKey>(e))
     81        if (const std::string *key = boost::get_error_info<SerializerKey>(e)) {
    8282          STATUS("Illegal key parsing information for potential "+*key+".");
    83         else
     83        } else {
    8484          STATUS("Illegal key parsing information for potential with unknown key.");
     85        }
    8586        return Action::failure;
    8687      }
Note: See TracChangeset for help on using the changeset viewer.