Remove logging module import and logging.error call