diff options
author | Sage Weil <sage@inktank.com> | 2012-07-16 15:40:53 -0700 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2012-07-16 15:37:13 -0700 |
commit | 8dafcc5c1906095cb7d15d648a7c1d7524df3768 (patch) | |
tree | 7f7f82fab019fbba3624cc643ed29ab69b07ba71 /src/log | |
parent | ec5cd6def9817039704b6cc010f2797a700d8500 (diff) | |
download | ceph-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.h | 3 |
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; } }; |