Update logging.py