Skip to content

Commit

Permalink
fixing logging issues (?)
Browse files Browse the repository at this point in the history
  • Loading branch information
tabergma committed Jan 10, 2025
1 parent 4dba792 commit 90d2272
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions rasa/utils/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import tempfile
import warnings
from pathlib import Path
from socket import SOCK_DGRAM, SOCK_STREAM
from types import TracebackType
from typing import (
Any,
Expand All @@ -24,8 +25,9 @@
Tuple,
)

from socket import SOCK_DGRAM, SOCK_STREAM
import numpy as np

import rasa.shared.utils.io
import rasa.utils.io
from rasa.constants import (
DEFAULT_LOG_LEVEL_LIBRARIES,
Expand All @@ -36,7 +38,6 @@
)
from rasa.shared.constants import DEFAULT_LOG_LEVEL, ENV_LOG_LEVEL, TCP_PROTOCOL
from rasa.shared.exceptions import RasaException
import rasa.shared.utils.io

logger = logging.getLogger(__name__)

Expand Down Expand Up @@ -153,7 +154,7 @@ def configure_logging_from_file(logging_config_file: Text) -> None:
try:
logging.config.dictConfig(logging_config_dict)
except (ValueError, TypeError, AttributeError, ImportError) as e:
logging.debug(
logger.debug(
f"The logging config file {logging_config_file} could not "
f"be applied because it failed validation against "
f"the built-in Python logging schema. "
Expand Down

0 comments on commit 90d2272

Please sign in to comment.