Skip to content
Snippets Groups Projects
Commit 32cbb066 authored by Erik Reid's avatar Erik Reid
Browse files

log state changes to TASK_LOGGER_NAME

parent 2f71921c
No related branches found
No related tags found
No related merge requests found
......@@ -33,6 +33,14 @@ class InventoryTask(Task):
def __init__(self):
pass
def update_state(self, **kwargs):
task_logger = logging.getLogger(constants.TASK_LOGGER_NAME)
task_logger.debug(json.dumps(
{'state': kwargs['state'], 'meta': kwargs['meta']}
))
super().update_state(**kwargs)
def _save_value(key, value):
assert isinstance(value, str), \
"sanity failure: expected string data as value"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment