fjpanag commented on pull request #3498: URL: https://github.com/apache/incubator-nuttx/pull/3498#issuecomment-817110630
> @fjpanag so if not for SD removal what is the other failure scenario that this would handle? The initial "inspiration" for this PR, was that the driver should not just swallow any errors, or die silently. It shall take care of itself. Of course, it will work perfectly in the SD card scenario. In fact, this is how I tested it. It can be used for this purpose, but it would be quite inefficient, compared to properly adding/removing the channel. I mentioned you since the work on adding/removing dynamically syslog channels is not finished. Thus, for the moment this is a necessary evil for log files in removable media. Apart for that, I can image it being useful in: * Temporary errors, e.g. an out of memory condition that the system can recover at a later time. * Errors handled elsewhere, e.g. a file system error, that some logic elsewhere handled by unmounting/remounting the SD, and is not aware of the logger to also remove and then add again. * Low-level / electrical errors, especially on "dump" drivers. E.g. an external (non-removable) memory, without an FS, that directly stores raw log files. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
