[ovs-dev] [RFC PATCH 2/3] tests: Enable debugging in pyftpdlib.

Jarno Rajahalme jrajahalme at nicira.com
Tue Oct 20 22:23:59 UTC 2015


Helps diagnosing problems.

Signed-off-by: Jarno Rajahalme <jrajahalme at nicira.com>
---
 tests/test-l7.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/test-l7.py b/tests/test-l7.py
index 65c6c2a..faec2bc 100755
--- a/tests/test-l7.py
+++ b/tests/test-l7.py
@@ -30,6 +30,10 @@ def get_ftpd():
         from pyftpdlib.handlers import FTPHandler
         from pyftpdlib.servers import FTPServer
 
+        import logging
+        import pyftpdlib.log
+        pyftpdlib.log.LEVEL = logging.DEBUG
+
         class OVSFTPHandler(FTPHandler):
             authorizer = DummyAuthorizer()
             authorizer.add_anonymous("/tmp")
-- 
2.1.4




More information about the dev mailing list