-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Disable serial logging when serial not connected #866
Comments
Try to disable logging at the end of setup()
We need some information at the beginning about ip etc.
Add checkbox in advenced settings with logging on/off, but for future we
need more extended logs, to be able to focus on some parts at debugging
time.
13.02.2018 11:27 PM "Gijs Noorlander" <notifications@github.com> napisał(a):
… As suggested here: #847 (comment)
<#847 (comment)>
Apparently disable logging to serial when not connected will make the ESP
response more smooth, use less memory and will lead to world peace.
If we could achieve at least 2 of these, it is worth to try and auto
detect whether the serial port is being read and stop sending logs to
serial when it is not being read.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#866>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAHOU93WVq6JnENBZV4lrOdfJfeQcW_vks5tUgxFgaJpZM4SEgGO>
.
|
The logging is something that really needs some attention. But that's another issue. For now I am trying to detect whether the FIFO is full. So have to look a bit further. |
First attempt, not clear yet how to detect it. See letscontrolit#866 Also preparation for future improvement on logging. (to detect whether there is some logging active so Strings may not have to be prepared.
memory - that could be done. Just like with the web server I would try and stream out logs directly instead of building up strings. Problem is that this is done throughout all plugins. So this is quite something.
a connection may not be possible as from the ESP point of view there is always the USB transceiver connected to it. Whatever pin push and read back magic one would try- unless you get sent back anything from the host I don't think you can auto-detect this.
disabling serial logging at a certain time after boot. Devs look at it for like two minutes and after that... re-flash. And world peace- were you thinking about a plugin or a more instant solution? |
Wait with streaming logs. And also allow for proper filtering. Detection is still an unsolved problem The last item is also a bit tricky. |
) First attempt, not clear yet how to detect it. See #866 Also preparation for future improvement on logging. (to detect whether there is some logging active so Strings may not have to be prepared.
Current implementation does have some buffer for the log to serial, so logging is no longer blocking So this issue can be closed, since the original issue cannot be implemented and we now have a better fix for the actual problem. |
As suggested here: #847 (comment)
Apparently disable logging to serial when not connected will make the ESP response more smooth, use less memory and will lead to world peace.
If we could achieve at least 2 of these, it is worth to try and auto detect whether the serial port is being read and stop sending logs to serial when it is not being read.
The text was updated successfully, but these errors were encountered: