diff --git a/python/villas/node/__init__.py b/python/villas/node/__init__.py index 997d5c906..5dd9dac99 100644 --- a/python/villas/node/__init__.py +++ b/python/villas/node/__init__.py @@ -1 +1 @@ -import .node +from . import node diff --git a/python/villas/node/node.py b/python/villas/node/node.py index 9950bb908..d7862b809 100644 --- a/python/villas/node/node.py +++ b/python/villas/node/node.py @@ -37,23 +37,27 @@ class Node(object): self.log = open(self.log_filename, 'w+') - LOGGER.info("Starting VILLASnode with config: %s", self.config_file.name) + LOGGER.info("Starting VILLASnode instance with config: %s", self.config_file.name) self.child = subprocess.Popen([self.executable, self.config_file.name], stdout=self.log, stderr=self.log) def pause(self): + LOGGER.info("Pausing VILLASnode instance") self.child.send_signal(signal.SIGSTOP) def resume(self): + LOGGER.info("Resuming VILLASnode instance") self.child.send_signal(signal.SIGCONT) def stop(self): + LOGGER.info("Stopping VILLASnode instance") self.child.send_signal(signal.SIGTERM) self.child.wait() self.log.close() def restart(self): + LOGGER.info("Restarting VILLASnode instance") self.request('restart') @property