summaryrefslogtreecommitdiff
path: root/src/log
diff options
context:
space:
mode:
authorSage Weil <sage@inktank.com>2012-07-16 15:40:53 -0700
committerSage Weil <sage@inktank.com>2012-07-16 15:37:13 -0700
commit8dafcc5c1906095cb7d15d648a7c1d7524df3768 (patch)
tree7f7f82fab019fbba3624cc643ed29ab69b07ba71 /src/log
parentec5cd6def9817039704b6cc010f2797a700d8500 (diff)
downloadceph-8dafcc5c1906095cb7d15d648a7c1d7524df3768.tar.gz
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 <sage@inktank.com>
Diffstat (limited to 'src/log')
-rw-r--r--src/log/SubsystemMap.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/log/SubsystemMap.h b/src/log/SubsystemMap.h
index 70f1246ebe7..d40552de2c1 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;
}
};