Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(FACT-2319) Added debugonce method #2085

Merged
merged 1 commit into from
Sep 14, 2020

Conversation

Filipovici-Andrei
Copy link
Contributor

@Filipovici-Andrei Filipovici-Andrei commented Sep 14, 2020

Added the debugonce method to facter's API.
It prints the same debug message only once,
when debugging is active.

Usage:

Facter.debugonce(<debugging message>)

The debug message parameter is treated as an object and
.to_s is used to extract the debug message from it.

@Filipovici-Andrei Filipovici-Andrei added the enhancement New feature or enhancement label Sep 14, 2020
@Filipovici-Andrei Filipovici-Andrei requested review from a team September 14, 2020 12:51
@sebastian-miclea sebastian-miclea merged commit e0428ac into puppetlabs:main Sep 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants