Skip to content

silencing commands promise output, clarify inform attribute please? #5138

Answered by nickanderson
craigcomstock asked this question in Q&A
Discussion options

You must be logged in to vote

inform => "false" suppresses the info level logs from commands promises. In the example below three commands are run. One suppressing nothing, one suppressing command output and one suppressing both command output and inform log messages.

bundle agent __main__
{
  commands:
      "echo"
        arglist => { "Hello", "with", "inform true",
                     "without silence" },
        inform => "true",
        contain => in_shell,
        handle => "i_suppress_nothing";

      "echo"
        arglist => { "Hello", "with", "inform true",
                     "with contain in_shell_and_silent" },
        inform => "true",
        contain => in_shell_and_silent,
        handle => "i_suppre…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@craigcomstock
Comment options

Answer selected by craigcomstock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants