diff options
author | Josh Blum | 2013-06-14 00:58:55 -0700 |
---|---|---|
committer | Josh Blum | 2013-06-14 00:58:55 -0700 |
commit | 24f5e26a878eb2be2773dea337ef43c23d5101f7 (patch) | |
tree | 2fe9bdbd6f66b9742f8c95dbe326b113aabab19c /lib/element.cpp | |
parent | c10b1b4a55b44777d5ca7c5e570759a107cf38ed (diff) | |
parent | 78a360bc3016fb1f1cfbc68456f135e7ab2f61cf (diff) | |
download | sandhi-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.cpp | 11 |
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) |