2024-04-01から1ヶ月間の記事一覧

Python debug: trace back

以下を必要な場所に書き込むと、 import logging logger = logging.getLogger(__name__) logger.error("ERROR", stack_info=True) 以下のような出力が得られる。便利。 traceback (most recent call last): File "/Users/hironobu/WORK/guide2dl/pg_tuner/pg…