cool tech zone zone
How to get filenames in log output - Printable Version

+- cool tech zone zone (https://forum.cooltech.zone)
+-- Forum: Tangara (https://forum.cooltech.zone/forumdisplay.php?fid=3)
+--- Forum: General (https://forum.cooltech.zone/forumdisplay.php?fid=5)
+--- Thread: How to get filenames in log output (/showthread.php?tid=225)



How to get filenames in log output - EricZX505 - 2025-11-20

I for the life of me could not find out how to do this as it is displayed in this issue here
https://codeberg.org/cool-tech-zone/tangara-fw/issues/413

I have esp32 installed and the environment set up correctly and can build and flash the firmware to my device. I just need to understand what options in menu config I need to manipulate to get it to spit out file names so I can figure out what is making my Tangara crash when scanning my library. I have had trouble scanning the 2052 give or take 10 albums in my collection and it is very hard to pin down the problem without this information.

Thanks much in advance,
EricZX


RE: How to get filenames in log output - ailurux - 2025-11-20

(2025-11-20, 01:49 AM)EricZX505 Wrote: I for the life of me could not find out how to do this as it is displayed in this issue here
https://codeberg.org/cool-tech-zone/tangara-fw/issues/413

I have esp32 installed and the environment set up correctly and can build and flash the firmware to my device. I just need to understand what options in menu config I need to manipulate to get it to spit out file names so I can figure out what is making my Tangara crash when scanning my library. I have had trouble scanning the 2052 give or take 10 albums in my collection and it is very hard to pin down the problem without this information.

Thanks much in advance,
EricZX

There's no menu config option for that, those logs were from a build I made which had some extra logging added. If you're already set up with the firmware, you can add something like:
Code:
ESP_LOGW(kTag, "processing file: %s", std::string(path).c_str());

 to the top of Database::processCandidateCallback (in src/tangara/database/database.cpp on line 455).

It may not be a specific file that is causing the crash, though. It would be good to rule it out, but usually when there's a crash during database updating it's more to do with the size of the library. To get a better idea of where the crash is happening you'll also likely want to enable core dump logs in menuconfig: ESP_COREDUMP_LOGS (Component config -> Core Dump -> Enable core dump logs for debugging).