From 3d9193509e44f0767d3b5d0d5f984a90fec572e3 Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Thu, 15 Dec 2011 20:29:20 +0100 Subject: Make non-remote commands work. --- src/daemon.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/daemon.py') diff --git a/src/daemon.py b/src/daemon.py index f23d6b5f..b413f465 100755 --- a/src/daemon.py +++ b/src/daemon.py @@ -23,6 +23,10 @@ import sys import threading import subprocess +import logging + +log = logging.getLogger(__name__) + class Executor(threading.Thread): """ Just a class to execute commands in a thread. @@ -35,7 +39,7 @@ class Executor(threading.Thread): self.command = command def run(self): - print('executing %s' % (self.command.strip(),)) + log.info('executing %s' % (self.command.strip(),)) subprocess.call(self.command.split()) def main(): -- cgit v1.2.3