puppetlabs/puppet — pull request #1454 by domcleal (2013-02-06 14:48:04+00:00)
Title: (#17522) Only print load errors to debug with non-specific context

Replaces GH-1280, rebased to master.

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.