diff --git a/swarms/utils/decorators.py b/swarms/utils/decorators.py index c83b7b74..d507d3f9 100644 --- a/swarms/utils/decorators.py +++ b/swarms/utils/decorators.py @@ -1,9 +1,10 @@ -import time +import functools import logging -import threading -import functools +import threading +import time import warnings + def log_decorator(func): def wrapper(*args, **kwargs): logging.info(f'Entering {func.__name__}') diff --git a/swarms/utils/logger.py b/swarms/utils/logger.py index ce97ae8b..a0750d4c 100644 --- a/swarms/utils/logger.py +++ b/swarms/utils/logger.py @@ -2,8 +2,11 @@ import logging logger = logging.getLogger() formatter = logging.Formatter("%(message)s") + ch = logging.StreamHandler() + ch.setFormatter(formatter) + logger.addHandler(ch) logger.setLevel(logging.DEBUG)