summaryrefslogtreecommitdiff
path: root/src/daemon.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/daemon.py')
-rwxr-xr-xsrc/daemon.py6
1 files changed, 5 insertions, 1 deletions
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():