[sr-dev] git:5.3:2e8ac93a: core: check logging protection before the level