We should gather an event if it is below the log or gather threshold.
Previously we were only gathering if we were going to print it, which makes
the dump no more useful than what was already logged.
Signed-off-by: Sage Weil <sage@inktank.com>
bool should_gather(unsigned sub, int level) {
assert(sub < m_subsys.size());
- return level <= m_subsys[sub].log_level;
+ return level <= m_subsys[sub].gather_level ||
+ level <= m_subsys[sub].log_level;
}
};