~ubuntu-branches/ubuntu/quantal/ceph/quantal

« back to all changes in this revision

Viewing changes to src/log/SubsystemMap.h

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2012-08-27 08:23:21 UTC
  • mto: This revision was merged to the branch mainline in revision 21.
  • Revision ID: package-import@ubuntu.com-20120827082321-2cfej6ddvk63vsqq
Tags: upstream-0.48.1
ImportĀ upstreamĀ versionĀ 0.48.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
 
59
59
  bool should_gather(unsigned sub, int level) {
60
60
    assert(sub < m_subsys.size());
61
 
    return level <= m_subsys[sub].log_level;
 
61
    return level <= m_subsys[sub].gather_level ||
 
62
      level <= m_subsys[sub].log_level;
62
63
  }
63
64
};
64
65