From: SRE Date: Thu, 4 May 2017 08:28:53 +0000 (+0200) Subject: Add a log file for paramiko connections X-Git-Tag: V8_3_0rc1~24 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=83aa7e682a575d4f94bc6b9e0c445d312c60167d;p=tools%2Fsat.git Add a log file for paramiko connections --- diff --git a/.gitignore b/.gitignore index 341ccb7..86431c4 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,4 @@ doc/build test/htmlcov test/test_res.html doc/src/commands/apidoc* +.idea diff --git a/commands/jobs.py b/commands/jobs.py index 68224c4..570d91b 100644 --- a/commands/jobs.py +++ b/commands/jobs.py @@ -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,