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

(GH-2900) Log messages from out::message and out::verbose #2929

Merged
merged 1 commit into from
Jul 20, 2021

Conversation

beechtom
Copy link
Contributor

This updates the out::message plan function to log messages at the
info level and the out::verbose plan function to log messages at the
debug level. Both functions continue to print to the console as
before.

!feature

  • Log messages from out::message and out::verbose
    (#2900)

    The out::message plan function now logs messages at the info level
    and the out::verbose plan function now logs messages at the debug
    level. Both functions continue to print messages to the console.

@beechtom beechtom requested a review from a team as a code owner July 14, 2021 00:26
@beechtom beechtom linked an issue Jul 14, 2021 that may be closed by this pull request
@beechtom beechtom requested a review from artlawson July 14, 2021 01:26
Copy link
Contributor

@lucywyman lucywyman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably mention this functionality in the debugging section of Writing Plans, but more importantly we explicitly say we don't log out::message here 😅

lib/bolt/logger.rb Outdated Show resolved Hide resolved
This updates the `out::message` plan function to log messages at the
`info` level and the `out::verbose` plan function to log messages at the
`debug` level. Both functions continue to print to the console as
before.

!feature

* **Log messages from `out::message` and `out::verbose`**
  ([puppetlabs#2900](puppetlabs#2900))

  The `out::message` plan function now logs messages at the `info` level
  and the `out::verbose` plan function now logs messages at the `debug`
  level. Both functions continue to print messages to the console.
@lucywyman lucywyman merged commit a83f07f into puppetlabs:main Jul 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Send out::message and out::verbose messages to logs
3 participants