Using self.debug/fail instead of raising PuppetError or calling the logger directly. This will automatically insert the useful resource identifier in the log message.