ansible icon indicating copy to clipboard operation
ansible copied to clipboard

Proxy more display methods

Open sivel opened this issue 2 years ago • 1 comments

SUMMARY

Proxy more display methods

ISSUE TYPE
  • Bugfix Pull Request
ADDITIONAL INFORMATION

sivel avatar Oct 04 '23 18:10 sivel

After looking more closely at the runner code, we don't need to proxy the individual v{1,5} calls, but just verbose. In the end the v methods are just shorthand to help us internally, so for reporting purposes, it makes more sense just to look at verbose. A method name could be reconstructed from the caplevel as well.

I shuffled some code slightly, and add decorators to handle the short circuiting for debug and verbose.

Technically speaking, system_warning and deprecated both have a short circuit in them, but it's far less common that they actually get short circuited, since the defaults are True, so I haven't done anything with them.

sivel avatar Oct 17 '23 21:10 sivel