Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/devbot/logs.py
diff options
context:
space:
mode:
authorDaniel Narvaez <dwnarvaez@gmail.com>2012-12-26 22:51:22 (GMT)
committer Daniel Narvaez <dwnarvaez@gmail.com>2012-12-26 22:51:22 (GMT)
commit7733514f0860ed1529c9effe831aa683cdc7d3c4 (patch)
tree6f42cc9aca7ec73a08412beb108b424a66d5444b /devbot/logs.py
parentf7a5dd469a381c1b2f358f41bcd105cf4651df56 (diff)
Cleanup clean
Diffstat (limited to 'devbot/logs.py')
-rw-r--r--devbot/logs.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/devbot/logs.py b/devbot/logs.py
new file mode 100644
index 0000000..e85d21d
--- /dev/null
+++ b/devbot/logs.py
@@ -0,0 +1,15 @@
+#!/usr/bin/python
+
+import os
+
+from devbot import config
+
+
+def clean():
+ print "* Deleting logs"
+
+ try:
+ for filename in os.listdir(config.logs_dir):
+ os.unlink(os.path.join(config.logs_dir, filename))
+ except OSError:
+ pass