Skip to content
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

Remove dead (uncompilable) code from python script bindings #4690

Merged
merged 2 commits into from
Feb 8, 2021

Conversation

andy31415
Copy link
Contributor

Problem

Weave baseline supports log redirection. CHIP lost that capability (unsure why though) and the python chip bindings that were trying to use such redirection would not even compile.

Summary of Changes

Deletes the logging code, adds a todo to figure out final functionality.

Also replaced some WEAVE with CHIP - although realistically that logging does not currently work.

Long term, I believe log redirection should work in some generic way:

  • python wants to use python logging capability
  • android would want android logging
  • embedded devices likely want to redirect to their own uart/debug areas

Updating this seems a larger task though, so for now I just cleaned it and added a TODO.

@todo
Copy link

todo bot commented Feb 5, 2021

determine if log redirection is supposed to be functioning in CHIP

https://github.com/project-chip/connectedhomeip/blob/4b86a272c8ebda184a615c2efc1fdcaa0e28d701/src/controller/python/ChipDeviceController-ScriptBinding.cpp#L308-L318


This comment was generated by todo based on a TODO comment in 4b86a27 in #4690. cc @andy31415.

@woody-apple
Copy link
Contributor

src/controller/python/chip/ChipStack.py Outdated Show resolved Hide resolved
@woody-apple
Copy link
Contributor

@andy31415 unit test fail? Is that real?

@andy31415
Copy link
Contributor Author

@andy31415 unit test fail? Is that real?

Seems green now. I do not believe these changes get unit tested at all because mostly python.

@andy31415 andy31415 merged commit 0a91b1b into project-chip:master Feb 8, 2021
@andy31415 andy31415 deleted the fix_python_logging branch October 28, 2021 14:02
agners added a commit to agners/connectedhomeip that referenced this pull request Jun 3, 2024
Since project-chip#5024 there is a new logging callback working. The old code has
partially been removed in project-chip#4690, but never completely. Drop the old
logging code for good.
agners added a commit to agners/connectedhomeip that referenced this pull request Jun 3, 2024
Since project-chip#5024 there is a new logging callback working. The old code has
partially been removed in project-chip#4690, but never completely. Drop the old
logging code for good.
agners added a commit to agners/connectedhomeip that referenced this pull request Jun 3, 2024
Since project-chip#5024 there is a new logging callback working. The old code has
partially been removed in project-chip#4690, but never completely. Drop the old
logging code for good.
mergify bot pushed a commit that referenced this pull request Jun 4, 2024
Since #5024 there is a new logging callback working. The old code has
partially been removed in #4690, but never completely. Drop the old
logging code for good.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants