diff options
author | Robey Pointer <robey@lag.net> | 2005-02-28 07:09:02 +0000 |
---|---|---|
committer | Robey Pointer <robey@lag.net> | 2005-02-28 07:09:02 +0000 |
commit | 8ee26cd41246ee90418c148a8a5cf9bf78f09e45 (patch) | |
tree | 62be0a24c978a9c033b450da977a75e5fb979dda /paramiko/sftp.py | |
parent | e915dccc7dc97b79642a541da77c08c4c1e89b03 (diff) | |
download | paramiko-8ee26cd41246ee90418c148a8a5cf9bf78f09e45.tar.gz |
[project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-149]
add thread ids to logs
add a logging filter that reports the thread-id of the logger, and use
that for all paramiko logging. since thread-local stuff didn't appear
until python 2.4, i hacked up my own little version to assign incrementing
numbers to threads as they log.
Diffstat (limited to 'paramiko/sftp.py')
-rw-r--r-- | paramiko/sftp.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/paramiko/sftp.py b/paramiko/sftp.py index c11564ad..ccf5b141 100644 --- a/paramiko/sftp.py +++ b/paramiko/sftp.py @@ -93,7 +93,7 @@ class SFTPError (Exception): class BaseSFTP (object): def __init__(self): - self.logger = logging.getLogger('paramiko.sftp') + self.logger = util.get_logger('paramiko.sftp') ### internals... |