gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r14759 - gauger


From: gnunet
Subject: [GNUnet-SVN] r14759 - gauger
Date: Tue, 29 Mar 2011 11:02:06 +0200

Author: bartpolot
Date: 2011-03-29 11:02:06 +0200 (Tue, 29 Mar 2011)
New Revision: 14759

Modified:
   gauger/gauger.py
Log:
Added extended logging


Modified: gauger/gauger.py
===================================================================
--- gauger/gauger.py    2011-03-28 21:52:47 UTC (rev 14758)
+++ gauger/gauger.py    2011-03-29 09:02:06 UTC (rev 14759)
@@ -227,19 +227,22 @@
 s1.listen(5)
 while(True):
   s2, address = s1.accept()
-  print 'Connection from:'
-  print address
+  print 'Connection from:', address
   data = s2.recv(4096)
   s2.close()
   try:
     user,password,revision,dataname,result = data.strip().split(',')
   except:
-    print "ERROR: malformed data", data.strip()
+    print >> sys.stderr, "ERROR: malformed data", data.strip()
     continue
   hostname = gethostfromlogin(user, password)
   if (not hostname):
-    print "ERROR: username/password not correct"
+    print >> sys.stderr, "ERROR: username/password not correct"
     continue
+  print 'Host:', hostname
+  print 'RevN:', revision
+  print 'Name:', dataname
+  print 'Data:', result
   hostname = DATADIR+hostname
   if (not check_dir(hostname)):
     continue




reply via email to

[Prev in Thread] Current Thread [Next in Thread]