Skip to content
This repository has been archived by the owner on Mar 13, 2023. It is now read-only.

feat: restore asyncio debug in debug ext #632

Merged
merged 2 commits into from
Sep 19, 2022
Merged

Conversation

LordOfPolls
Copy link
Member

What type of pull request is this?

  • Non-breaking code change
  • Breaking code change
  • Documentation change/addition
  • Tests change

Description

This pr restores the debug ext behaviour of setting asyncio to its DEBUG mode and enabling tracemaloc. This functionality was removed when we migrated to not using the loop variable in accordance with asyncio. This adds it in a compliant manor.

Changes

  • Set asyncio to debug in an async start task
  • Start tracemaloc on ext load
  • Log the above at warning level

Checklist

  • I've formatted my code with Black
  • I've ensured my code works on Python 3.10.x
  • I've tested my code

@LordOfPolls LordOfPolls added the New Feature::Library A new feature for the library label Sep 9, 2022
@LordOfPolls
Copy link
Member Author

retargetting to 2.x

@LordOfPolls LordOfPolls changed the base branch from dev to 2.x September 9, 2022 16:36
@LordOfPolls LordOfPolls merged commit 4a1cca9 into 2.x Sep 19, 2022
@LordOfPolls LordOfPolls deleted the restore-asyncio-debug branch September 19, 2022 11:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
New Feature::Library A new feature for the library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant