Call log only when its level is ok