Skip to content

(FACT-2319) Added debugonce method#2085

Merged
sebastian-miclea merged 1 commit intopuppetlabs:mainfrom
Filipovici-Andrei:FACT-2319
Sep 14, 2020
Merged

(FACT-2319) Added debugonce method#2085
sebastian-miclea merged 1 commit intopuppetlabs:mainfrom
Filipovici-Andrei:FACT-2319

Conversation

@Filipovici-Andrei
Copy link
Copy Markdown
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