Skip to content

Commit adcf7ff

Browse files
committed
common: warn at startup about ceph_assert_supressions
Signed-off-by: Radoslaw Zarzynski <[email protected]>
1 parent 5a5d43f commit adcf7ff

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/common/assert.cc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ namespace ceph {
4343
{
4444
ceph_assert(!g_assert_context);
4545
g_assert_context = cct;
46+
const auto supressions = get_str_list(
47+
g_assert_context->_conf.get_val<std::string>("ceph_assert_supresssions"));
48+
if (!supressions.empty()) {
49+
lderr(g_assert_context) << "WARNING: supressions for ceph_assert present: "
50+
<< supressions << dendl;
51+
}
4652
}
4753

4854
[[gnu::cold]] void __ceph_assert_fail(const char *assertion,

0 commit comments

Comments
 (0)