feat(util/log_tree): inherit description

This commit is contained in:
Gabriel Ebner 2017-03-23 13:27:39 +01:00
parent c55579dd69
commit fdd80c12dd

View file

@ -125,7 +125,7 @@ log_tree::node log_tree::node::mk_child(name n, std::string const & description,
child.m_ptr->m_detached = m_ptr->m_detached;
}
child.m_ptr->m_detail_level = std::max(m_ptr->m_detail_level, lvl);
child.m_ptr->m_description = description;
child.m_ptr->m_description = description.empty() ? m_ptr->m_description : description;
child.m_ptr->m_location = loc;
m_ptr->m_children.insert(n, child);