Keeps only the too_many_files skip line, so later lines cannot displace it, * and records whether an admitted auto-index actually ran to completion. */
| 22767 | /* Keeps only the too_many_files skip line, so later lines cannot displace it, |
| 22768 | * and records whether an admitted auto-index actually ran to completion. */ |
| 22769 | static void autoindex_limit_capture_log(const char *line) { |
| 22770 | if (!line) { |
| 22771 | return; |
| 22772 | } |
| 22773 | if (strstr(line, "msg=autoindex.skip") && strstr(line, "reason=too_many_files")) { |
| 22774 | snprintf(autoindex_skip_log, sizeof(autoindex_skip_log), "%s", line); |
| 22775 | } |
| 22776 | if (strstr(line, "msg=autoindex.done")) { |
| 22777 | autoindex_saw_done = true; |
| 22778 | } |
| 22779 | } |
| 22780 | |
| 22781 | typedef struct { |
| 22782 | int files; /* indexable .py files written into the root */ |
nothing calls this directly
no outgoing calls
no test coverage detected