HomePhorge

Step towards #5027 -- add Logging#deprication_warning facility
e5609ffefb41Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Step towards #5027 -- add Logging#deprication_warning facility

This commit adds a method analogous to Puppet.warn which 1) only logs each
message the first time it is received and 2) only logs the first 100 messages
it receives. Messages are logged via warn.

This could easily be made more flexible by making the hard limit and effective
log level user settable, if desired.

Details

Provenance
Markus Roberts <Markus@reality.com>Authored on
Nick Lewis <nick@puppetlabs.com>Committed on Apr 12 2011, 9:47 PM
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU1954bbfe175a: Refactor on the road to #5027 -- remove unused Scope#strinterp
Branches
Unknown
Tags
Unknown

Event Timeline

Nick Lewis <nick@puppetlabs.com> committed rPUe5609ffefb41: Step towards #5027 -- add Logging#deprication_warning facility (authored by Markus Roberts <Markus@reality.com>).Apr 12 2011, 9:47 PM