Don't feed logging handler messages which they're not supposed to handle.