Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/devbot/run.py
diff options
context:
space:
mode:
Diffstat (limited to 'devbot/run.py')
-rw-r--r--devbot/run.py11
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))