Skip to content

Commit

Permalink
get_sitelink_redirect_url: logging firstWikidataBasedSite
Browse files Browse the repository at this point in the history
  • Loading branch information
maxlath committed Sep 6, 2018
1 parent fb0343e commit b47f92a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/get_sitelink_redirect_url.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ module.exports = (siteStr, langStr, context) => entity => {
var sites = siteStr.split(',').map(cleanStr).map(expendSite)

const firstWikidataBasedSite = findFirstWikidataBasedSite(sites)
if (firstWikidataBasedSite) {
logger.info(firstWikidataBasedSite, 'firstWikidataBasedSite')
}
// Give the place to Wikidata to handle priorities
// before re-substituing the site during getSitelinkUrl
sites = sites.map(replaceWikidataBaseSiteByWikidata)
Expand Down

0 comments on commit b47f92a

Please sign in to comment.