ansible / ansible/pylibssh

Make sure logging works with threads properly

Open
#806 3 comments 0 reactions 0 assignees View on GitHub
🤖 infra enhancement help wanted
Dominant language
Cython
Stars
79
Forks
47
Avg merge
1d 11h
Merged PRs (30d)
6

Description

##### SUMMARY
The libssh callbacks and log level is stored in thread-local variables so if we spawn threads in python, we need to make sure to reinitialize logging to make sure it works properely.

##### ISSUE TYPE
- Feature Idea

##### ADDITIONAL INFORMATION
Based on discussion in #597 which introduces the logging.

Contributor guide

Open the contributing guide

Research direction

Start by reading discussion #597 and tracing how the libssh callbacks and log level are stored in thread-local variables. Verify the behavior when Python threads are spawned and logging is reinitialized; done means callbacks and log levels work correctly across those threads.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.