summaryrefslogtreecommitdiff
path: root/lib/element.cpp
diff options
context:
space:
mode:
authorJosh Blum2013-06-14 00:58:55 -0700
committerJosh Blum2013-06-14 00:58:55 -0700
commit24f5e26a878eb2be2773dea337ef43c23d5101f7 (patch)
tree2fe9bdbd6f66b9742f8c95dbe326b113aabab19c /lib/element.cpp
parentc10b1b4a55b44777d5ca7c5e570759a107cf38ed (diff)
parent78a360bc3016fb1f1cfbc68456f135e7ab2f61cf (diff)
downloadsandhi-24f5e26a878eb2be2773dea337ef43c23d5101f7.tar.gz
sandhi-24f5e26a878eb2be2773dea337ef43c23d5101f7.tar.bz2
sandhi-24f5e26a878eb2be2773dea337ef43c23d5101f7.zip
Merge branch 'master' into query_flow
Diffstat (limited to 'lib/element.cpp')
-rw-r--r--lib/element.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/element.cpp b/lib/element.cpp
index 2de0ffb..008027c 100644
--- a/lib/element.cpp
+++ b/lib/element.cpp
@@ -34,7 +34,11 @@ Element::Element(const std::string &name)
}
(*this)->repr = str(boost::format("%s (%u)") % name % which);
- if (GENESIS) std::cerr << "New element: " << to_string() << std::endl;
+ if (GENESIS) std::cerr
+ << "===================================================\n"
+ << "== Element Created: " << to_string() << "\n"
+ << "===================================================\n"
+ << std::flush;
}
Element::~Element(void)
@@ -57,6 +61,11 @@ ElementImpl::~ElementImpl(void)
if (this->executor) this->top_block_cleanup();
if (this->topology) this->hier_block_cleanup();
if (this->worker) this->block_cleanup();
+ if (ARMAGEDDON) std::cerr
+ << "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n"
+ << "xx Element Destroyed: " << name << "\n"
+ << "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n"
+ << std::flush;
}
void Element::set_container(WeakContainer *container)