And only log when debug
authorenglebass <englebass@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 11 Feb 2010 21:56:31 +0000 (21:56 +0000)
committerenglebass <englebass@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 11 Feb 2010 21:56:31 +0000 (21:56 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@46102 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/modules/mp/chained_pool/eina_chained_mempool.c

index 556c876..4f9e42b 100644 (file)
@@ -265,20 +265,24 @@ static Eina_Mempool_Backend _eina_chained_mp_backend = {
 
 Eina_Bool chained_init(void)
 {
+#ifdef DEBUG
    _eina_mempool_log_dom = eina_log_domain_register("eina_mempool", EINA_LOG_COLOR_DEFAULT);
    if (_eina_mempool_log_dom < 0)
      {
        EINA_LOG_ERR("Could not register log domain: eina_mempool");
        return EINA_FALSE;
      }
+#endif
    return eina_mempool_register(&_eina_chained_mp_backend);
 }
 
 void chained_shutdown(void)
 {
    eina_mempool_unregister(&_eina_chained_mp_backend);
+#ifdef DEBUG
    eina_log_domain_unregister(_eina_mempool_log_dom);
    _eina_mempool_log_dom = -1;
+#endif
 }
 
 #ifndef EINA_STATIC_BUILD_CHAINED_POOL