Skip to content

Commit

Permalink
removed set_log_level call from agent
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikolai committed Sep 23, 2019
1 parent 920588e commit c936497
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions rasa/core/agent.py
Expand Up @@ -35,7 +35,7 @@
get_model,
)
from rasa.nlu.utils import is_url
from rasa.utils.common import update_sanic_log_level, set_log_level
from rasa.utils.common import update_sanic_log_level
from rasa.utils.endpoints import EndpointConfig

logger = logging.getLogger(__name__)
Expand Down Expand Up @@ -132,7 +132,6 @@ async def _pull_model_and_fingerprint(

async with model_server.session() as session:
try:
# set_log_level()
params = model_server.combine_parameters()
async with session.request(
"GET",
Expand Down
5 changes: 3 additions & 2 deletions rasa/utils/io.py
Expand Up @@ -39,8 +39,9 @@ def configure_colored_logging(loglevel):
)


def enable_async_loop_debugging(event_loop: AbstractEventLoop,
slow_callback_duration: float = 0.1) -> AbstractEventLoop:
def enable_async_loop_debugging(
event_loop: AbstractEventLoop, slow_callback_duration: float = 0.1
) -> AbstractEventLoop:
logging.info(
"Enabling coroutine debugging. Loop id {}.".format(id(asyncio.get_event_loop()))
)
Expand Down
3 changes: 1 addition & 2 deletions tests/core/test_agent.py
Expand Up @@ -23,8 +23,7 @@
def loop():
loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)
loop = rasa.utils.io.enable_async_loop_debugging(loop,
slow_callback_duration=0.1)
loop = rasa.utils.io.enable_async_loop_debugging(loop)
yield loop
loop.close()

Expand Down

0 comments on commit c936497

Please sign in to comment.