summaryrefslogtreecommitdiff
path: root/paramiko/sftp.py
diff options
context:
space:
mode:
authorRobey Pointer <robey@lag.net>2005-02-28 07:09:02 +0000
committerRobey Pointer <robey@lag.net>2005-02-28 07:09:02 +0000
commit8ee26cd41246ee90418c148a8a5cf9bf78f09e45 (patch)
tree62be0a24c978a9c033b450da977a75e5fb979dda /paramiko/sftp.py
parente915dccc7dc97b79642a541da77c08c4c1e89b03 (diff)
downloadparamiko-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.py2
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...