zephyr_mirror: Fix logging messages to multiple files under /tmp.

Also fixes the fact that certain output was not logged at all.

(imported from commit 0e63a9ef4105921ad7cbe3f7565ce7832c5db25e)
This commit is contained in:
Jacob Hurwitz 2013-01-14 13:08:33 -05:00 committed by Tim Abbott
parent 9ebfa84385
commit 630b7ae521
2 changed files with 59 additions and 49 deletions

View file

@ -20,7 +20,7 @@ def fetch_public_streams():
if res.get("result") == "success":
streams = res["streams"]
else:
logging.error("Error getting public streams:\n%s" % res)
logging.error("Error getting public streams:\n%s" % (res,))
return None
except Exception:
logging.exception("Error getting public streams:")