[Sugar-devel] [PATCH sugar] Debug log before and after running ssh-keygen

Daniel Narvaez dwnarvaez at gmail.com
Fri Aug 17 13:04:21 EDT 2012


From: Daniel Narvaez <dwnarvaez at gmail.com>

It can take several seconds to generate keys on a slow/busy system
and I suspect this is causing intermittent failures in the buildbot
tests. Given the potential length of the operation it seems to be
generally useful to have these logs.
---
 src/jarabe/intro/window.py |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/jarabe/intro/window.py b/src/jarabe/intro/window.py
index a6a2a29..15765f9 100644
--- a/src/jarabe/intro/window.py
+++ b/src/jarabe/intro/window.py
@@ -62,11 +62,14 @@ def create_profile(name, color=None):
         logging.warning('Existing public key %s.pub moved to %s.pub.broken',
                         keypath, keypath)
 
+    logging.debug("Generating user keypair")
+
     cmd = "ssh-keygen -q -t dsa -f %s -C '' -N ''" % (keypath, )
     (s, o) = commands.getstatusoutput(cmd)
     if s != 0:
         logging.error('Could not generate key pair: %d %s', s, o)
 
+    logging.debug("User keypair generated")
 
 class _Page(gtk.VBox):
     __gproperties__ = {
-- 
1.7.10.2



More information about the Sugar-devel mailing list