logging: add an assert for the FLAG_INHERIT bit