-
-
Notifications
You must be signed in to change notification settings - Fork 583
add py logging #1218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add py logging #1218
Conversation
PR Compliance Guide 🔍(Compliance updated until commit 7139a2e)Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label Previous compliance checksCompliance check up to commit 289aadd
|
|||||||||||||||||||||||||||||||||||||||||||||||||||
PR Code Suggestions ✨Latest suggestions up to 7139a2e
Previous suggestions✅ Suggestions up to commit 289aadd
|
||||||||||||||||||||||||||||||||||||||||
PR Type
Bug fix, Enhancement
Description
Refactor GIL acquisition to manual disposal for better thread debugging
Add comprehensive thread logging for Python GIL operations
Enable Python engine GIL debugging mode
Change task execution to use LongRunning option with explicit scheduler
Improve code structure by reducing nesting in exception handling
Diagram Walkthrough
File Walkthrough
PythonInterpreterPlugin.cs
Enable Python GIL debugging modesrc/Plugins/BotSharp.Plugin.PythonInterpreter/PythonInterpreterPlugin.cs
PythonEngine.DebugGIL = trueafter engine initializationPyCodeInterpreter.cs
Refactor GIL handling with enhanced thread debuggingsrc/Plugins/BotSharp.Plugin.PythonInterpreter/Services/PyCodeInterpreter.cs
usingstatement to manual disposalpattern
acquisition, before/after disposal
block
TaskCreationOptions.LongRunningwithexplicit scheduler