diff --git a/os_faults/api/human.py b/os_faults/api/human.py index d6ca6b0..8f1f946 100644 --- a/os_faults/api/human.py +++ b/os_faults/api/human.py @@ -11,6 +11,7 @@ # under the License. import inspect +import logging import re from os_faults.api import error @@ -18,6 +19,8 @@ from os_faults.api import node_collection as node_collection_pkg from os_faults.api import service as service_pkg from os_faults.api import utils +LOG = logging.getLogger(__name__) + """ Human API understands commands like these (examples): * restart service [on (random|one|single| node[s])] @@ -137,3 +140,5 @@ def execute(destructor, command): fn = getattr(nodes, action) fn(**kwargs) + + LOG.info('Command `%s` is executed successfully', command)