diff --git a/shogi-ai/util/common.py b/shogi-ai/util/common.py index 2a3b290..aea598d 100644 --- a/shogi-ai/util/common.py +++ b/shogi-ai/util/common.py @@ -24,7 +24,7 @@ def get_logger(name: str) -> logging.Logger: logdir.mkdir() form = "%(asctime)s.%(msecs)03d - %(name)s - %(levelname)s - %(message)s" - time = datetime.now().strftime("%Y%m%d.%H%M%S.%f") + time = datetime.now().strftime("%Y%m%d.%H%M%S") logging.basicConfig( filename=f"{logdir}/{name}.{time}.log", level=logging.INFO, diff --git a/shogi-ai/util/multiproc.py b/shogi-ai/util/multiproc.py index 52649ba..b5b4664 100644 --- a/shogi-ai/util/multiproc.py +++ b/shogi-ai/util/multiproc.py @@ -15,14 +15,13 @@ """ import concurrent.futures +import multiprocessing import os from concurrent.futures import Future, ProcessPoolExecutor from functools import partial from typing import Any, Callable, List -from util.common import get_logger - -logger = get_logger(__name__) +logger = multiprocessing.get_logger() class MultiProcManager: