-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Fix pigweed RPC logging on ESP32 #26282
Fix pigweed RPC logging on ESP32 #26282
Conversation
PR #26282: Size comparison from 5a68477 to 3940f15 Increases (1 build for cc32xx)
Full report (1 build for cc32xx)
|
@dhrishi any chance you could look at this and advise on how to use these things? |
I had taken a look at the origin of |
Thing taking 500ms to dispatch is likely going to have downstream impacts. Now when someone looks at a log they are going have that context by default and spend more time, IMO potentially looking into the wrong thing. If any application find this log spammy, and they know that it is not an issue for their application, that application should use a higher value. How I see it you can start masking an issue that can progressively get worse over time. But if this is the default that your platform wants to give I will remove that part of the PR |
IMO, serving a particular event can take time depending on the type of action it does and depending on the network. In short, as per our experiments, if one request takes some time then it does not mean that the subsequent requests will always be worse. Did you notice anything otherwise? Also, as I said, this prints error on the console and nothing else which won't be of much help in the production devices |
Having said that, if you feel that the default value is too large, we can decide on some acceptable default value for this and update the same. |
As per my offline discussion with @tehampson , we will revert this and put up a subsequent PR with the fix to Pigweed RPC too as this breaks the Google daily builds. Approving this PR now |
PR #26282: Size comparison from 5a68477 to 1de144a Increases above 0.2%:
Increases (1 build for cc32xx)
Full report (1 build for cc32xx)
|
Basically this unreverts the project-chip#26282 with additional changes to fixed the rpc logging problem introduced in project-chip#26227.
Basically this unreverts the project-chip#26282 with additional changes to fixed the rpc logging problem introduced in project-chip#26227.
Basically this unreverts the project-chip#26282 with additional changes to fixed the rpc logging problem introduced in project-chip#26227.
…26348) * [ESP32] Use esp_log_writev() for logging rather than ESP_LOGx macros Basically this unreverts the #26282 with additional changes to fixed the rpc logging problem introduced in #26227. * Fix the bug when setting the log level * remove the log level check * Fix the color codes for pigweed logs * Added comment explaining the addition of color codes in pigweed logger
…roject-chip#26348) * [ESP32] Use esp_log_writev() for logging rather than ESP_LOGx macros Basically this unreverts the project-chip#26282 with additional changes to fixed the rpc logging problem introduced in project-chip#26227. * Fix the bug when setting the log level * remove the log level check * Fix the color codes for pigweed logs * Added comment explaining the addition of color codes in pigweed logger
…26348) (#26477) * [ESP32] Use esp_log_writev() for logging rather than ESP_LOGx macros Basically this unreverts the #26282 with additional changes to fixed the rpc logging problem introduced in #26227. * Fix the bug when setting the log level * remove the log level check * Fix the color codes for pigweed logs * Added comment explaining the addition of color codes in pigweed logger
Regression introduced in #26227. After that PR we no longer get matter logs in pigweed RPC. This reverts
src/platform/ESP32/Logging.cpp
to before the regression. Not only is it matter logging broken, but the changes also caused some back to back RPC calls to hang and timeout.Test:
./scripts/build/build_examples.py --target esp32-m5stack-all-clusters-rpc build
../out/esp32-m5stack-all-clusters-rpc/chip-all-clusters-app.flash.py
python3 -m chip_rpc.console --device /dev/ttyUSB0
rpcs.chip.rpc.Device.SetPairingState(pairing_enabled=False)
andrpcs.chip.rpc.Device.SetPairingState(pairing_enabled=True)
does not result in a timeout