[copr] skvidal-backend: log to the right place add a fixme for later (3ca4f10)

skvidal at fedorahosted.org skvidal at fedorahosted.org
Fri Nov 16 18:24:23 UTC 2012


Repository : http://git.fedorahosted.org/cgit/copr.git

On branch  : skvidal-backend

>---------------------------------------------------------------

commit 3ca4f109ded164a0d70ce2181ed15bbe4befeee5
Author: Seth Vidal <skvidal at fedoraproject.org>
Date:   Fri Nov 16 13:22:17 2012 -0500

    log to the right place
    add a fixme for later


>---------------------------------------------------------------

 backend/dispatcher.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/backend/dispatcher.py b/backend/dispatcher.py
index 7a8f126..3c0e160 100644
--- a/backend/dispatcher.py
+++ b/backend/dispatcher.py
@@ -19,6 +19,8 @@ from ansible import callbacks
 
 
 
+#FIXME - this should be emitting to the per-worker log file
+# so we can know what is going on and where
 class SilentPlaybookCallbacks(callbacks.PlaybookCallbacks):
     ''' playbook callbacks - quietly! '''
 
@@ -136,7 +138,7 @@ class Worker(multiprocessing.Process):
         return jobdata
 
     def return_results(self, job):
-        self.log('%s status %s. Took %s seconds' % (job.id, job.status, job.ended_on - job.startedon))
+        self.callback.log('%s status %s. Took %s seconds' % (job.id, job.status, job.ended_on - job.startedon))
         os.unlink(job.jobfile)
         #FIXME - this should either return job status/results 
         # into a queue or it should submit results directly to the frontend



More information about the copr-devel mailing list