In general, it would be helpful to log the findings from any function that searches a piece. For instance, using dijkstra_gif. Nothing crazy in the logs, just something like:
Database used:
Mods:
Total fragments found:
Total fragments in final Dijkstra path: