diff options
author | 2021-02-18 19:32:14 +0000 | |
---|---|---|
committer | 2021-02-18 19:32:14 +0000 | |
commit | e79a7730a3d8151622670f9ba38d05f2b267e2ec (patch) | |
tree | f0d1cd089cdaba27cb5a384535585b5114a7342b /bot/exts/evergreen/pfp_modify.py | |
parent | Merge all avatar cogs into one. Also includes some in_executor and max_concur... (diff) |
Log what func is being ran in the executor.
Diffstat (limited to 'bot/exts/evergreen/pfp_modify.py')
-rw-r--r-- | bot/exts/evergreen/pfp_modify.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/evergreen/pfp_modify.py b/bot/exts/evergreen/pfp_modify.py index f356d2f6..4245432e 100644 --- a/bot/exts/evergreen/pfp_modify.py +++ b/bot/exts/evergreen/pfp_modify.py @@ -29,6 +29,7 @@ _EXECUTOR = ThreadPoolExecutor(10) async def in_thread(func: t.Callable, *args) -> asyncio.Future: """Allows non-async functions to work in async functions.""" + log.trace(f"Running {func.__name__} in an executor.") loop = asyncio.get_event_loop() return await loop.run_in_executor(_EXECUTOR, func, *args) @@ -138,7 +139,6 @@ class PfpModify(commands.Cog): await ctx.send(file=file, embed=embed) @commands.max_concurrency(1, commands.BucketType.guild, wait=True) - @commands.group() async def pfp_modify(self, ctx: commands.Context) -> None: """Groups all of the pfp modifing commands to allow a single concurrency limit.""" if not ctx.invoked_subcommand: |