setup-ssh: fix the logging error message
authorIustin Pop <iustin@google.com>
Fri, 20 Aug 2010 11:54:54 +0000 (13:54 +0200)
committerIustin Pop <iustin@google.com>
Fri, 20 Aug 2010 14:41:19 +0000 (16:41 +0200)
commit8647a52c7cf454fd05d7b0e5170dc9a6bb494b75
treec5fb7f214aed46f3f0e68973909774655eb0700e
parenta49781690c4a3244ee1ea0fa26061fcca9e5c474
setup-ssh: fix the logging error message

This took a bit of interesting debugging, but the issue seems to be that
on older python/logging/paramiko (I'm not sure which is at fault here),
the other threads are finishing later than the main thread, so the
logging module closes the logging file (but doesn't unregister it)
before the paramiko thread(s) get a change to finish their logging.

Tested on both old versions (Dapper) and new versions (Lucid) of these
three pieces of the puzzle.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: RenĂ© Nussbaumer <rn@google.com>
tools/setup-ssh [changed mode: 0644->0755]