Skip to content

Reduce next-link warning to once per method/endpoint, omitting the query, fixes #2848 - #2994

Merged
forki merged 2 commits into
fsprojects:masterfrom
viktor-svub:bugfix/nextLinkWarn
Jan 18, 2018
Merged

forki merged 2 commits into
fsprojects:masterfrom
viktor-svub:bugfix/nextLinkWarn

Conversation

@viktor-svub

Copy link
Copy Markdown
Contributor

Warnings for empty next-link result are repeated for every single occurrence, which caused console/log flooding when we use Artifactory for all of our internal dependencies (repository behavior fix or replacement does not seem negotiable).

Reduced the warnings to once per specific API endpoint and shortening the report by trimming the query, which only contains redundant information.

match atLeastOneFailed with
| Some i ->
traceWarnfn "At least one 'next' link (index %d) returned a empty result (noticed on '%O'): ['%s']" i url (System.String.Join("' ; '", linksToFollow))
let mutable uri = null // warn once per apecific API endpoint, but try to cut the query

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo

@forki
forki requested a review from matthid January 18, 2018 14:36
@forki
forki merged commit ba482b8 into fsprojects:master Jan 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants