From 8dafcc5c1906095cb7d15d648a7c1d7524df3768 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Mon, 16 Jul 2012 15:40:53 -0700 Subject: [PATCH] log: fix event gather condition 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 --- src/log/SubsystemMap.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/log/SubsystemMap.h b/src/log/SubsystemMap.h index 70f1246ebe74e..d40552de2c121 100644 --- a/src/log/SubsystemMap.h +++ b/src/log/SubsystemMap.h @@ -58,7 +58,8 @@ public: 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; } }; -- 2.39.5