puppetlabs/puppet — pull request #1280 by domcleal (2012-11-14 18:06:10+00:00)
Title: (#17522) Only print load errors to debug with non-specific context

Fixes a variable assignment that landed in the wrong branch during a conflict
merge (a4451fb1). Commit a8575f41 fixed a spec failure but the original code
wasn't restored.

This restores the original functionality in #14136 where a non-specific
context (i.e. /files/etc) would be optimised (only load lenses for files under
/etc) but since it was vague, would only log load errors to debug. Instead,
load errors were reported as warnings for non-specific contexts.

Load errors will continue to be reported as warnings for supplied contexts if
they're specific.