Closed Bug 912488 Opened 11 years ago Closed 11 years ago

Check in modifications to woo_mailer.py in production working directory

Categories

(Tree Management Graveyard :: OrangeFactor, defect)

ARM
All
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: emorley, Assigned: emorley)

Details

Attachments

(1 file)

[mcote@brasstacks1.dmz.scl3 orangefactor]$ hg st
M woo_mailer.py
[mcote@brasstacks1.dmz.scl3 orangefactor]$ hg diff
diff -r 58437f4c3f1b woo_mailer.py
--- a/woo_mailer.py     Tue May 07 14:10:23 2013 -0400
+++ b/woo_mailer.py     Wed Sep 04 07:03:44 2013 -0700
@@ -78,11 +78,16 @@
         return jdata['bugs']

     def get_json(self, url_path):
-        data = urllib2.urlopen(self.local_server_url + url_path).read()
+        url = self.local_server_url + url_path
+        print 'Getting JSON from %s.' % url
+        data = urllib2.urlopen(url).read()
+        print 'Results: %s' % data
         return json.loads(data)

     def get_bugdata(self, url_path):
+        print 'Getting bug data from %s.' % url_path
         if url_path in self.bugdata:
+            print 'Found in cache: %s' % self.bugdata
             return self.bugdata[url_path]
         jdata = self.get_json(url_path)
         self.bugdata[url_path] = jdata
Assignee: nobody → emorley
Status: NEW → ASSIGNED
Comment on attachment 799485 [details] [diff] [review]
Add extra debugging output to woo_mailer.py

mcote's patch; r=me
Attachment #799485 - Flags: review+
Landed with mcote as author:
https://hg.mozilla.org/automation/orangefactor/rev/2eea03ef6c29

[mcote@brasstacks1.dmz.scl3 orangefactor]$ hg pull -v
pulling from http://hg.mozilla.org/automation/orangefactor
searching for changes
adding changesets
adding manifests
adding file changes
added 3 changesets with 3 changes to 3 files
(run 'hg update' to get a working copy)
[mcote@brasstacks1.dmz.scl3 orangefactor]$ hg up
3 files updated, 0 files merged, 0 files removed, 0 files unresolved
[mcote@brasstacks1.dmz.scl3 orangefactor]$ hg st
[mcote@brasstacks1.dmz.scl3 orangefactor]$
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Product: Testing → Tree Management
Product: Tree Management → Tree Management Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: