Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/commands/common.py
diff options
context:
space:
mode:
authorDaniel Narvaez <dwnarvaez@gmail.com>2012-12-26 17:16:07 (GMT)
committer Daniel Narvaez <dwnarvaez@gmail.com>2012-12-26 18:17:29 (GMT)
commitdab868b20b936add86967eafe32711413b80dd6e (patch)
tree60fa49f59a8de148bd3fad607f688851678bbde8 /commands/common.py
parent67d36d7eed2bf07063ba9cc7b3720f1efa4560ce (diff)
Rework logging and output
Use the logs for all the commands output. Tail the log if there is an error. Create a link to the latest log so that buildbot can find it easily.
Diffstat (limited to 'commands/common.py')
-rw-r--r--commands/common.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/commands/common.py b/commands/common.py
index e92f798..ac39daf 100644
--- a/commands/common.py
+++ b/commands/common.py
@@ -10,7 +10,7 @@ from devbot import command
from devbot import git
-def setup():
+def setup(log_name=None):
git.set_root_path(base_dir)
args = {"config_dir": os.path.join(base_dir, "config"),
@@ -21,10 +21,10 @@ def setup():
"prefs_path": os.path.join(base_dir, "prefs"),
"logs_dir": os.path.join(base_dir, "logs")}
+ if log_name:
+ args["log_name"] = log_name
+
if "SUGAR_BUILDBOT" in os.environ:
args["relocatable"] = True
config.setup(**args)
-
- tools_dir = os.path.join(base_dir, "tools")
- command.set_logger(os.path.join(tools_dir, "log-command"))