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

Manuel Quiñones manuq at laptop.org
Fri Aug 17 13:12:42 EDT 2012


Hi Daniel,

sounds good and doesn't harm.

2012/8/17 Daniel Narvaez <dwnarvaez at gmail.com>:
> 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.

Acked-by: Manuel Quiñones <manuq at laptop.org>

> ---
>  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
>
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel



-- 
.. manuq ..


More information about the Sugar-devel mailing list