Removed useless line.
Use logging.getLevel() instead of logging.levels.indexOf().