Skip to content

Commit

Permalink
Removing the INFO log when creating an AsyncioRunnable (nv-morpheus#456)
Browse files Browse the repository at this point in the history
When running an instance of the `AsyncioRunnable` class, it populates the output with:
```
I20240313 16:41:26.300143 3296734 asyncio_runnable.hpp:246] AsyncioRunnable::run() > Creating new event loop
I20240313 16:41:26.300436 3296734 asyncio_runnable.hpp:259] AsyncioRunnable::run() > Calling run_until_complete() on main_task()
```

This PR changes that to a `DVLOG(10)` since this information is more tracing than actually informative.

Authors:
  - Michael Demoret (https://github.com/mdemoret-nv)

Approvers:
  - Christopher Harris (https://github.com/cwharris)
  - David Gardner (https://github.com/dagardner-nv)

URL: nv-morpheus#456
  • Loading branch information
mdemoret-nv authored Mar 15, 2024
1 parent a920644 commit 9cf1ebc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/mrc/_pymrc/include/pymrc/asyncio_runnable.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ void AsyncioRunnable<InputT, OutputT>::run(mrc::runnable::Context& ctx)
}

// Need to create a loop
LOG(INFO) << "AsyncioRunnable::run() > Creating new event loop";
DVLOG(10) << "AsyncioRunnable::run() > Creating new event loop";

// Gets (or more likely, creates) an event loop and runs it forever until stop is called
loop = asyncio.attr("new_event_loop")();
Expand All @@ -256,7 +256,7 @@ void AsyncioRunnable<InputT, OutputT>::run(mrc::runnable::Context& ctx)

auto py_awaitable = coro::BoostFibersMainPyAwaitable(this->main_task(scheduler));

LOG(INFO) << "AsyncioRunnable::run() > Calling run_until_complete() on main_task()";
DVLOG(10) << "AsyncioRunnable::run() > Calling run_until_complete() on main_task()";

try
{
Expand Down

0 comments on commit 9cf1ebc

Please sign in to comment.