Commit 283e9cc
Add [#1118]-tagged info logs to originFile path selection
Diagnosing this failure mode requires a way to tell PHImageManager and
walker outputs apart on-device. Add three info-level log lines, all
prefixed `[#1118]` so they can be filtered together:
- `fetchOriginImageFile:` — one line per call recording the primary
resource type, UTI, and whether the request will go through
PHImageManager first or the walker first. Makes the routing decision
visible without stepping through the code.
- `fallbackFetchImageDataFor:` `dataHandler` — logs degraded intermediate
drops (with byte count so a "large degraded" case is distinguishable
from a "tiny thumbnail" one), cancellation, and the final delivered
byte count with the destination path.
- `writeImageResourceToFile:` — logs the delivered file size, resource
UTI, and resource type on the walker's success path.
Together, `grep [#1118]` on `xcrun devicectl log` (or Xcode Console) now
yields a decision → delivery trail for every originFile call, so a
reporter can attach the log excerpt when the returned bytes look smaller
than expected — no debug build needed.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent c0b5470 commit 283e9cc
1 file changed
Lines changed: 22 additions & 1 deletion
Lines changed: 22 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1442 | 1442 | | |
1443 | 1443 | | |
1444 | 1444 | | |
| 1445 | + | |
| 1446 | + | |
| 1447 | + | |
| 1448 | + | |
| 1449 | + | |
| 1450 | + | |
| 1451 | + | |
1445 | 1452 | | |
1446 | 1453 | | |
1447 | 1454 | | |
| |||
1496 | 1503 | | |
1497 | 1504 | | |
1498 | 1505 | | |
1499 | | - | |
| 1506 | + | |
1500 | 1507 | | |
1501 | 1508 | | |
1502 | 1509 | | |
| |||
1597 | 1604 | | |
1598 | 1605 | | |
1599 | 1606 | | |
| 1607 | + | |
| 1608 | + | |
| 1609 | + | |
| 1610 | + | |
| 1611 | + | |
| 1612 | + | |
1600 | 1613 | | |
1601 | 1614 | | |
1602 | 1615 | | |
| |||
1650 | 1663 | | |
1651 | 1664 | | |
1652 | 1665 | | |
| 1666 | + | |
| 1667 | + | |
| 1668 | + | |
1653 | 1669 | | |
1654 | 1670 | | |
1655 | 1671 | | |
| 1672 | + | |
1656 | 1673 | | |
1657 | 1674 | | |
1658 | 1675 | | |
| |||
1674 | 1691 | | |
1675 | 1692 | | |
1676 | 1693 | | |
| 1694 | + | |
1677 | 1695 | | |
1678 | 1696 | | |
1679 | 1697 | | |
| |||
1683 | 1701 | | |
1684 | 1702 | | |
1685 | 1703 | | |
| 1704 | + | |
| 1705 | + | |
| 1706 | + | |
1686 | 1707 | | |
1687 | 1708 | | |
1688 | 1709 | | |
| |||
0 commit comments