switched to using `assert` for dead code removal of logging code instead of hardcoded `const bool`