The `logging` module has no function `setLevel`, I guess there's a line missing here.