mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-08 01:14:03 -07:00
Enhance logging, way to gate verbosity levels pending.
This commit is contained in:
parent
05e27a419c
commit
b5c62ec068
5 changed files with 28 additions and 11 deletions
|
@ -35,6 +35,9 @@ class TestCallbacks(object):
|
|||
def on_import_for_host(self, host, filename):
|
||||
self.events.append([ 'import', [ host, filename ]])
|
||||
|
||||
def on_not_import_for_host(self, host, missing_filename):
|
||||
pass
|
||||
|
||||
def on_task_start(self, name, is_conditional):
|
||||
self.events.append([ 'task start', [ name, is_conditional ]])
|
||||
|
||||
|
@ -63,6 +66,12 @@ class TestCallbacks(object):
|
|||
def on_dark_host(self, host, msg):
|
||||
self.events.append([ 'failed/dark', [ host, msg ]])
|
||||
|
||||
def on_setup_primary(self):
|
||||
pass
|
||||
|
||||
def on_setup_secondary(self):
|
||||
pass
|
||||
|
||||
|
||||
class TestRunner(unittest.TestCase):
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue