community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1738399 - /comdev/reporter.apache.org/trunk/scripts/scandist.py
Date Sat, 09 Apr 2016 23:58:44 GMT
Author: sebb
Date: Sat Apr  9 23:58:44 2016
New Revision: 1738399

URL: http://svn.apache.org/viewvc?rev=1738399&view=rev
Log:
Logger not in scope here

Modified:
    comdev/reporter.apache.org/trunk/scripts/scandist.py

Modified: comdev/reporter.apache.org/trunk/scripts/scandist.py
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/scripts/scandist.py?rev=1738399&r1=1738398&r2=1738399&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/scripts/scandist.py (original)
+++ comdev/reporter.apache.org/trunk/scripts/scandist.py Sat Apr  9 23:58:44 2016
@@ -213,7 +213,7 @@ def processCommit(commit):
     # "changed": {"comdev/reporter.apache.org/trunk/scandist.py": {"flags": "U  "}}, 
     # "date": "2015-07-13 13:38:33 +0000 (Mon, 13 Jul 2015)", "type": "svn", "id": 1690668}
     #
-    logger.info("%(id)s %(date)s %(log)s" % commit)
+    print("%(id)s %(date)s %(log)s" % commit)
     # Note: a single commit can change multiple paths
     paths = commit['changed']
     for path in paths:
@@ -383,7 +383,7 @@ def processTargets():
                 email = committer + "@apache.org"
                 tmpdict.update({'email' : email})
                 receivers = [email]
-                logger.info("Notifying '%(committer)s' of new data pushed to '%(project)s'
in r%(id)s" % tmpdict)
+                print("Notifying '%(committer)s' of new data pushed to '%(project)s' in r%(id)s"
% tmpdict)
                 message = """From: Apache Reporter Service <no-reply@reporter.apache.org>
 To: %(committer)s <%(email)s>
 Reply-To: dev@community.apache.org
@@ -427,7 +427,7 @@ The Apache Reporter Service.
                    smtpObj = smtplib.SMTP('localhost')
                    smtpObj.sendmail(sender, receivers, message)  
                    #print message       
-                   logger.info("Successfully sent email")
+                   print("Successfully sent email")
                 except Exception:
                    logger.exception("Error: unable to send email")
 



Mime
View raw message