You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The approaches to this can already be found in the LoggingManager under delete_first_n_lines.
The procedure is as follows:
a temporary file is created in "w" mode.
the system.log is scanned up to the new first line.
transfer to the new file is started.
the system.log is deleted and the temporary file is renamed.
An error occurs here during the last step. It seems that system.log is still open. However, I am very sure that this is not the case.
I have already tried to do the whole thing without a temporary file using a string buffer. However, that did not work either. I don't know exactly but I can't seem to write anything to the file. It would be good to start at that point.
For debugging, you can proceed as follows:
make start upload fs and flash code
connect to the wifi
via https://192.168.4.1/logging you can read the content of the system.log.
you can find more information about the length of the file and a bit more at https://192.168.4.1/log_lines.
This last endpoint can be removed after the fix.
The text was updated successfully, but these errors were encountered:
The approaches to this can already be found in the
LoggingManager
underdelete_first_n_lines
.The procedure is as follows:
system.log
is scanned up to the new first line.system.log
is deleted and the temporary file is renamed.An error occurs here during the last step. It seems that system.log is still open. However, I am very sure that this is not the case.
I have already tried to do the whole thing without a temporary file using a string buffer. However, that did not work either. I don't know exactly but I can't seem to write anything to the file. It would be good to start at that point.
For debugging, you can proceed as follows:
make start
upload fs and flash codehttps://192.168.4.1/logging
you can read the content of thesystem.log
.https://192.168.4.1/log_lines
.This last endpoint can be removed after the fix.
The text was updated successfully, but these errors were encountered: