[SCM] live-studio branch, master, updated. 9112c3f0511ff0ffc6981f066edcf1791dd2ebc4
Chris Lamb
lamby at debian.org
Sat Jul 31 02:30:21 UTC 2010
The following commit has been merged in the master branch:
commit 9112c3f0511ff0ffc6981f066edcf1791dd2ebc4
Author: Chris Lamb <lamby at debian.org>
Date: Fri Jul 30 22:28:55 2010 -0400
Log output of the runner so we can find bugs.
diff --git a/debian/live-studio-runner.init b/debian/live-studio-runner.init
index d505530..a2aa061 100644
--- a/debian/live-studio-runner.init
+++ b/debian/live-studio-runner.init
@@ -31,7 +31,9 @@ case "$1" in
--quiet \
--umask 007 \
--pidfile ${PIDFILE} \
- --exec /usr/bin/python -- ${DAEMON} queue_runner --pidfile ${PIDFILE}
+ --exec /usr/bin/python -- ${DAEMON} queue_runner \
+ --pidfile ${PIDFILE} \
+ --logfile /var/log/live-studio-runner.log
then
echo "$NAME."
else
diff --git a/live_studio/build/management/commands/queue_runner.py b/live_studio/build/management/commands/queue_runner.py
index b9b05d2..b8eedef 100644
--- a/live_studio/build/management/commands/queue_runner.py
+++ b/live_studio/build/management/commands/queue_runner.py
@@ -24,6 +24,7 @@ def call(logfile, args):
class Command(NoArgsCommand):
option_list = NoArgsCommand.option_list + (
make_option('--pidfile', dest='pidfile', help="Pidfile", default=None),
+ make_option('--logfile', dest='logfile', help="Log file", default=None),
)
def handle_noargs(self, **options):
@@ -65,7 +66,7 @@ class Command(NoArgsCommand):
self.run(options)
def run(self, options):
- logging.basicConfig(level=logging.INFO)
+ logging.basicConfig(filename=options['logfile'], level=logging.INFO)
self.log = logging.getLogger('live-studio-runner')
if int(options['verbosity']) > 1:
--
live-studio
More information about the debian-live-changes
mailing list