Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSimon Schampijer <simon@schampijer.de>2009-01-16 12:49:56 (GMT)
committer Simon Schampijer <simon@schampijer.de>2009-01-16 12:49:56 (GMT)
commit72fca76d01d837022cb7dce5b0615d8995441443 (patch)
tree2ba63f66d03c83360d5ed61b23d3675fc8c478b2 /src
parent67d1d3bcad9dccf00f21d0193276d85947ea5a7b (diff)
separate debug settings from xsession #163
Diffstat (limited to 'src')
-rw-r--r--src/sugar/profile.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/sugar/profile.py b/src/sugar/profile.py
index edfda86..cce45a7 100644
--- a/src/sugar/profile.py
+++ b/src/sugar/profile.py
@@ -173,6 +173,27 @@ class Profile(object):
except OSError:
logging.error('Error removing old profile.')
+ def create_debug_file(self):
+ path = os.path.join(os.path.expanduser('~/.sugar'), 'debug')
+ fd = open(path, 'w')
+ text = '# Uncomment the following lines to turn on many' \
+ 'sugar debugging\n'\
+ '# log files and features\n'\
+ '#export LM_DEBUG=net\n' \
+ '#export GABBLE_DEBUG=all\n' \
+ '#export' \
+ 'GABBLE_LOGFILE=~/.sugar/default/logs/telepathy-gabble.log\n' \
+ '#export SALUT_DEBUG=all\n' \
+ '#export' \
+ 'SALUT_LOGFILE=~/.sugar/default/logs/telepathy-salut.log\n' \
+ '#export GIBBER_DEBUG=all\n' \
+ '#export PRESENCESERVICE_DEBUG=1\n' \
+ '#export SUGAR_LOGGER_LEVEL=debug\n\n' \
+ '# Uncomment the following line to enable core dumps\n' \
+ '#ulimit -c unlimited\n'
+ fd.write(text)
+ fd.close()
+
def get_profile():
global _profile