-
Notifications
You must be signed in to change notification settings - Fork 63
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
Logging error causes Scrapli to crash #349
Comments
The fix in #350 seems to have caused a new related issue. --- Logging error --- |
hey @robwdwd -- I did say "hopefully" fix 🤣 do you have a min reproducible example handy by any chance? I can try to take a peak this weekend! |
Describe the bug
Current main branch code crashes on attempting to log Scrapli buffer reads.
Commenting out the following line in async_channel.py removes the issue:
74: self.logger.debug("read: %r", buf)
In file: https://github.com/carlmontanari/scrapli/blob/2024.07.30/scrapli/channel/async_channel.py
To Reproduce
Steps to reproduce the behavior:
enable_basic_logging(file=True, level="debug)"
)Expected behavior
scrapli.log is populated with write and read output from the session
Stack Trace
OS (please complete the following information):
The text was updated successfully, but these errors were encountered: