From: Eduardo Ramos Testillano Date: Sat, 6 Jun 2015 15:46:01 +0000 (+0200) Subject: Fix getName X-Git-Tag: REFACTORING_TESTING_LIBRARY~132 X-Git-Url: https://git.teslayout.com/public/public/public/?a=commitdiff_plain;h=21d58fc1611bb292fdff8b31628ad88d552ce52b;p=anna.git Fix getName --- diff --git a/source/core/oam/Handler.cpp b/source/core/oam/Handler.cpp index d6cdade..d711f83 100644 --- a/source/core/oam/Handler.cpp +++ b/source/core/oam/Handler.cpp @@ -54,7 +54,7 @@ const anna::oam::alarm_data_t *anna::oam::Handler::alarmEvent(const anna::oam::M static char cad_aux[1024]; vsprintf(cad_aux, alarm.c_str(), argList); - std::string trace = module->getClassName(); + std::string trace = module->getName(); trace += anna::functions::asString(" | Alarm %s event: %s", (activation ? "activation" : "cancellation"), cad_aux); trace += anna::functions::asString(" | Enum type on module: %d", type); @@ -93,7 +93,7 @@ const anna::oam::counter_data_t *anna::oam::Handler::counterEvent(const anna::oa LOGDEBUG ( - std::string trace = module->getClassName(); + std::string trace = module->getName(); trace += anna::functions::asString(" | Counter event: %s", base.c_str()); trace += anna::functions::asString(" | Enum type on module: %d", type); trace += anna::functions::asString(" | Amount increased: %d", amount); diff --git a/source/diameter.comm/ApplicationMessageOamModule.cpp b/source/diameter.comm/ApplicationMessageOamModule.cpp index bba049c..44a235f 100644 --- a/source/diameter.comm/ApplicationMessageOamModule.cpp +++ b/source/diameter.comm/ApplicationMessageOamModule.cpp @@ -55,7 +55,7 @@ void anna::diameter::comm::ApplicationMessageOamModule::count (int messageCode, LOGDEBUG ( std::string msg = "Count operation ignored over module '"; - msg += getClassName(); + msg += getName(); msg += "': counters are disabled"; anna::Logger::debug(msg, ANNA_FILE_LOCATION); );