util: Fix crate name extraction for `log_error_with_caller` (#35944)

The paths can be absolute, meaning they would just log the initial
segment of where the repo was cloned.

Release Notes:

- N/A
9cd5c3656eLukas Wirth committed on 8/10/2025, 3:19:06 PM· committed by GitHubparent8382afb
1 file changedLine totals unavailable