(runDir string)
| 763 | } |
| 764 | |
| 765 | func countAPIProxySteeringEvents(runDir string) int { |
| 766 | eventsPath := findAPIProxyEventsFile(runDir) |
| 767 | if eventsPath == "" { |
| 768 | return 0 |
| 769 | } |
| 770 | count, err := parseAPIProxySteeringEvents(eventsPath) |
| 771 | if err != nil { |
| 772 | tokenUsageLog.Printf("Failed to parse API proxy events file %s: %v", eventsPath, err) |
| 773 | return 0 |
| 774 | } |
| 775 | return count |
| 776 | } |
| 777 | |
| 778 | func findAPIProxyEventsFile(runDir string) string { |
| 779 | primary := filepath.Join(runDir, "sandbox", "firewall", "logs", proxyEventsJSONLPath) |
no test coverage detected