add network name to bug reports
authorForrest Voight <forrest@forre.st>
Wed, 2 May 2012 23:07:13 +0000 (19:07 -0400)
committerForrest Voight <forrest@forre.st>
Wed, 2 May 2012 23:14:26 +0000 (19:14 -0400)
p2pool/main.py

index 932ff2b..91ed6e4 100644 (file)
@@ -1043,7 +1043,7 @@ def run():
             
             if 'failure' in eventDict:
                 text = ((eventDict.get('why') or 'Unhandled Error')
-                        + '\n' + eventDict['failure'].getTraceback())
+                    + '\n' + eventDict['failure'].getTraceback())
             else:
                 text = " ".join([str(m) for m in eventDict["message"]]) + "\n"
             
@@ -1051,7 +1051,7 @@ def run():
             client.getPage(
                 url='http://u.forre.st/p2pool_error.cgi',
                 method='POST',
-                postdata=p2pool.__version__ + '\n' + text,
+                postdata=p2pool.__version__ + ' ' + net.NAME + '\n' + text,
                 timeout=15,
             ).addBoth(lambda x: None)
     if not args.no_bugreport: