Would it not be better as `logging.error` in cases like this? Would that cause problems?