Skip to content
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.

LinkTagHelper & ScriptTagHelper now log view path #2063

Closed
wants to merge 2 commits into from

Conversation

DamianEdwards
Copy link
Member

Updates to LinkTagHelper and ScriptTagHelper to include the path of the current view when logging.

@NTaylorMullen @yishaigalatzer @dougbu

@ghost ghost added the cla-not-required label Feb 23, 2015
private readonly IEnumerable<KeyValuePair<string, object>> _values;

Copy link
Member

Choose a reason for hiding this comment

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

whitespace

@NTaylorMullen
Copy link
Member

solid, looks good to me. :shipit:

return
string.Format($"Tag Helper {_uniqueId} had partial matches while determining mode:{newLine}\t{{0}}",
return string.Format(
$"Tag Helper with ID {_uniqueId} in view '{_viewPath}' had partial matches while determining mode:{newLine}\t{{0}}",
Copy link
Member

Choose a reason for hiding this comment

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

nit: this could be unrolled to avoid most of the additional $"..." / string.Format(...) nesting:

  string.Format(
    "Tag Helper with ID {0} in view '{1}' had partial matches while determining mode:{2}\t{{3}}",
    _uniqueId,
    _viewPath,
    newline,
    string.Join($"{newLine}\t", _partialMatches.Select(partial => string.Format(
      "Mode '{0}' missing attributes:{1}\t\t{{2}} ",
      partial.Mode,
      newline,
      string.Join($"{newLine}\t\t", partial.MissingAttributes)))));

@dougbu
Copy link
Member

dougbu commented Feb 23, 2015

:shipit:

@DamianEdwards
Copy link
Member Author

Merged in eef8884

@DamianEdwards DamianEdwards deleted the enhancement-1949 branch February 24, 2015 06:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants