Get rid of last print's in bot code
Bug #884390 reported by
Paul Sokolovsky
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Linaro Android Bot Review |
Fix Released
|
Medium
|
Frans Gifford |
Bug Description
Bot runs in an unattended mode as a cronjob, so it shouldn't really print anything to stdout, everything should go to logs (to stderr so far). It still print's some stuff, and that causes mail spam on the system it is deployed on.
Related branches
lp://staging/~fgiff/linaro-android-bot-review/884390
- Paul Sokolovsky: Approve
-
Diff: 128 lines (+21/-21)3 files modifiedgerritconnection.py (+10/-10)
jenkinsconnection.py (+5/-5)
lavaconnection.py (+6/-6)
Changed in linaro-android-bot-review: | |
status: | Triaged → In Progress |
Changed in linaro-android-bot-review: | |
status: | In Progress → Fix Released |
To post a comment you must log in.
Still uses 'print' a lot. We'll remove these. Details below:
$ grep "print" *.py w.py: print i.get_lava_ data(args. rest[0] ) w.py: print "Error: Not sure what you're trying to do. Rerun with -h for usage." n.py: print "Error: Failed to load known_hosts file so unable to \ n.py: print "Error: Failed verification of gerrit's SSH key. \ n.py: print "Error: Failed authentication to gerrit server. Please \ n.py: print "Error: Failed to complete SSH session with gerrit." n.py: print "Error: Socket error when connecting to gerrit." n.py: print "Error: Failed to complete SSH session with gerrit \ n.py: print "get_starred_ list:", c.get_starred_ list() n.py: print "get_reviewed_ list:", c.get_reviewed_ list() on.py: print "Error: could not open %s." % (jenkins_ passwd_ file) on.py: print "Error: failed to start build." on.py: print "Build url: %s" % (build_url) on.py: print "Failed to queue build: %s gave HTTP code %s." % ( on.py: print c.get_job_list()
androidbotrevie
androidbotrevie
gerritconnectio
gerritconnectio
gerritconnectio
gerritconnectio
gerritconnectio
gerritconnectio
gerritconnectio
gerritconnectio
jenkinsconnecti
jenkinsconnecti
jenkinsconnecti
jenkinsconnecti
jenkinsconnecti
lavaconnection.py: print "Error: Couldn't get test results from LAVA."
lavaconnection.py: print "Error: Couldn't connect to LAVA."
lavaconnection.py: print "Error: Couldn't fetch test results for %s" % (
lavaconnection.py: print "Error: Couldn't connect to LAVA."