summaryrefslogtreecommitdiff
path: root/src/daemon.py
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2011-12-15 20:29:20 +0100
committerFlorent Le Coz <louiz@louiz.org>2012-01-26 10:05:34 +0100
commit3d9193509e44f0767d3b5d0d5f984a90fec572e3 (patch)
treecfeb4424b2a25168dfba66b0b2a9e57fd5ca1a72 /src/daemon.py
parentfe00f0eb23f492f5c15d3ac843c8ce7158daf174 (diff)
downloadpoezio-3d9193509e44f0767d3b5d0d5f984a90fec572e3.tar.gz
poezio-3d9193509e44f0767d3b5d0d5f984a90fec572e3.tar.bz2
poezio-3d9193509e44f0767d3b5d0d5f984a90fec572e3.tar.xz
poezio-3d9193509e44f0767d3b5d0d5f984a90fec572e3.zip
Make non-remote commands work.
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():