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
Moreover, opening, seeking for the end, and closing a file each time you want to write a line is a too heavy job. You should rather only write once at the end or periodically by detaching a dedicated process for it.
sarthou
changed the title
Logger remains stuck
Logger generate file operation errors
Apr 16, 2021
The fact that the robot is stuck is due to the battery (it is thus a wanted feature) and not the logger. Nevertheless, the logger generates an error at each event.
Removed the logging process from Main node to put it in a dedicated singleton which can be accessed from anywhere to log information, and automatically saves the data to file at a fixed interval
Due to asynchronous events (I think), we can enter into a situation where an operation on the file tries to be made while the file is not open.
To reproduce it, click anywhere multiple time, at a moment the robot will stop moving because of this issue.
The text was updated successfully, but these errors were encountered: