Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Cameron <quozl@laptop.org>2010-07-27 05:42:00 (GMT)
committer Daniel Drake <dsd@laptop.org>2010-07-28 16:08:36 (GMT)
commit4441d570ddf5f85b0dc97b3e0e25e7c0facaa265 (patch)
tree92514c6406bf8594851c81cd63325d3b09b05c17
parent9e0172214cf53920372178afb47123147c251297 (diff)
ignore logging cleanup fail, sugarlabs.org #1720 laptop.org #9623
Reinstates a design feature that was in sugar-session last year that was removed during rework. This version of the patch is for backport to 0.84.
-rw-r--r--bin/sugar-session6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/sugar-session b/bin/sugar-session
index f5d4c6c..6826c7d 100644
--- a/bin/sugar-session
+++ b/bin/sugar-session
@@ -138,6 +138,12 @@ def set_fonts():
settings.set_property("gtk-font-name", "%s %f" % (face, size))
def main():
+ try:
+ cleanup_logs()
+ except OSError, e:
+ # logs cleanup is not critical; it should not prevent sugar from
+ # starting if (for example) the disk is full or read-only.
+ print 'logs cleanup failed: %s' % e
cleanup_logs()
logger.start('shell')