chore(pl24): remove [imgdbg] diagnostic log
Diagnostic served its purpose: confirmed that PL24 bomOverviewlist URLs (e.g. illustrationId=4336125, "Alternatöre genel bakış" with PR-code filters) return only a records array with no images field — upstream genuinely has no schema illustration for these overview tables. Frontend UX for this case is handled separately.
This commit is contained in:
@@ -289,18 +289,6 @@ export class PL24Service {
|
||||
const crumbs = (data.crumbs as Array<{ name: string }>) || [];
|
||||
const groupName = crumbs[crumbs.length - 1]?.name || "";
|
||||
const illustrationId = linkPath.match(/illustrationId=(\d+)/)?.[1] || "";
|
||||
// Temporary: log raw images field to diagnose 404 issue
|
||||
const rawImages = (data?.data as any)?.images || data?.images;
|
||||
if (rawImages)
|
||||
this.logger.log(`[imgdbg] images field: ${JSON.stringify(rawImages).substring(0, 500)}`);
|
||||
else {
|
||||
// No images: dump top-level keys + a shallow preview to understand response shape
|
||||
const topKeys = Object.keys(data || {});
|
||||
const dataKeys = data?.data && typeof data.data === "object" ? Object.keys(data.data) : null;
|
||||
this.logger.log(
|
||||
`[imgdbg] NO images for illustrationId=${illustrationId}. topKeys=${JSON.stringify(topKeys)} dataKeys=${JSON.stringify(dataKeys)} sample=${JSON.stringify(data).substring(0, 800)}`,
|
||||
);
|
||||
}
|
||||
const imageData = this.extractImageData(data);
|
||||
|
||||
let parts = this.parsePartsResponse(data);
|
||||
|
||||
Reference in New Issue
Block a user