Fix failure to recognise min record level

Instead of the is comparator, it should be ==. Since if self.level is a
string it would never evaluate to true if compared with is operator.