]> SALOME platform Git repositories - tools/sat.git/commitdiff
Salome HOME
Add a log file for paramiko connections
authorSRE <serge.rehbinder@cea.fr>
Thu, 4 May 2017 08:28:53 +0000 (10:28 +0200)
committerSRE <serge.rehbinder@cea.fr>
Thu, 4 May 2017 08:28:53 +0000 (10:28 +0200)
.gitignore
commands/jobs.py

index 341ccb71ea79c5484b91aaad8c5c20a10356e054..86431c49c75dd6ae97c4f64ffba4c404d95d072d 100644 (file)
@@ -12,3 +12,4 @@ doc/build
 test/htmlcov
 test/test_res.html
 doc/src/commands/apidoc*
+.idea
index 68224c493e5a9e8bc92ef4331615296cf1968b86..570d91b2aa1a98065a433bb385f54cb8cc6d4e90 100644 (file)
@@ -1726,6 +1726,12 @@ def run(args, runner, logger):
     f = file( path_pyconf , 'w')
     config_jobs.__save__(f)
     
+    # log the paramiko problems
+    paramiko_log_dir_path = os.path.join(runner.cfg.USER.log_dir, "JOBS")
+    src.ensure_path_exists(paramiko_log_dir_path)
+    paramiko.util.log_to_file(os.path.join(paramiko_log_dir_path,
+                                           logger.txtFileName))
+    
     # Initialization
     today_jobs = Jobs(runner,
                       logger,