changeset 5:da132a64926e

log output,kinda
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 25 Nov 2010 12:08:05 -0800
parents ed3c5f7ba348
children dfbb21128332
files bitsytweet/__init__.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/bitsytweet/__init__.py
+++ b/bitsytweet/__init__.py
@@ -11,12 +11,14 @@ class BitsyTweet(object):
     self.bitsyblog = bitsyblog
     self.username = username
     self.password = password
     self.api = twitter.Api(username=self.username, password=self.password) 
 
   def __call__(self, blog_entry, url):
     if blog_entry.privacy == 'public': # only tweet public blogs
       tweet = '%s : %s' % (blog_entry.snippet(), url)
+      print 'Tweeting: %s' % tweet
       try:
         self.api.PostUpdate(tweet)
       except Exception, e:
         print >> sys.stderr, "Couldn't tweet %s (%s)" % (url, e)
+      print '</tweet>'