From 21d58fc1611bb292fdff8b31628ad88d552ce52b Mon Sep 17 00:00:00 2001
From: Eduardo Ramos Testillano <eduardo.ramos.testillano@ericsson.com>
Date: Sat, 6 Jun 2015 17:46:01 +0200
Subject: [PATCH] Fix getName

---
 source/core/oam/Handler.cpp                          | 4 ++--
 source/diameter.comm/ApplicationMessageOamModule.cpp | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

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);
     );
-- 
2.20.1