common/migration.py
branchstable
changeset 3700 fd550e4dc515
parent 3316 c4c07aab1c39
child 3715 e3ccadb126d7
--- a/common/migration.py	Fri Oct 16 14:15:44 2009 +0200
+++ b/common/migration.py	Fri Oct 16 14:37:11 2009 +0200
@@ -92,7 +92,9 @@
 
     def __init__(self, config, interactive=True, verbosity=1):
         self.config = config
-        self.config.init_log(logthreshold=logging.ERROR, debug=True)
+        if config:
+            # no config on shell to a remote instance
+            self.config.init_log(logthreshold=logging.ERROR, debug=True)
         # 0: no confirmation, 1: only main commands confirmed, 2 ask for everything
         self.verbosity = verbosity
         self.need_wrap = True