Skip to content

Commit

Permalink
log when no match found for app link
Browse files Browse the repository at this point in the history
  • Loading branch information
laverya committed May 28, 2020
1 parent 4370082 commit e14dda5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions kotsadm/api/src/controllers/kots/KotsAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,15 @@ export class KotsAPI {

if (mapped) {
ports.push(mapped);
} else {
// get list of app port urls
const appPorts: string[] = [];
for (const port of parsedKotsAppSpec.ports) {
if (port && port.applicationUrl) {
appPorts.push(port.applicationUrl)
}
}
console.log(`no match found for link ${link.url} in app ports ${appPorts.join(", ")}`)
}
}
}
Expand Down

0 comments on commit e14dda5

Please sign in to comment.