diff options
Diffstat (limited to 'devbot/run.py')
-rw-r--r-- | devbot/run.py | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/devbot/run.py b/devbot/run.py index 34edab9..9bd2a25 100644 --- a/devbot/run.py +++ b/devbot/run.py @@ -71,20 +71,11 @@ def collect_logs(source_path, log_name): with open(path) as f: logs[filename] = f.read() - log_path = config.get_log_path(log_name) + log_path = config.create_log(log_name) with open(log_path, "w") as f: for filename, log in logs.items(): f.write("\n===== %s =====\n\n%s" % (filename, log)) - last_log_path = os.path.join(config.logs_dir, "%s.log" % log_name) - - try: - os.unlink(last_log_path) - except OSError: - pass - - os.symlink(log_path, last_log_path) - def _get_random_id(): return ''.join(random.choice(string.letters) for i in xrange(8)) |