#10661 NORM 11.2.0-: Enable Sugar debug logs during the developent cycle

Zarro Boogs per Child bugtracker at laptop.org
Thu Feb 3 11:02:08 EST 2011


#10661: Enable Sugar debug logs during the developent cycle
--------------------------+-------------------------------------------------
 Reporter:  erikos        |                 Owner:  dsd                              
     Type:  defect        |                Status:  new                              
 Priority:  normal        |             Milestone:  11.2.0-M2                        
Component:  build-system  |               Version:  Development build as of this date
 Keywords:                |           Next_action:  code                             
 Verified:  0             |   Deployment_affected:                                   
Blockedby:                |              Blocking:                                   
--------------------------+-------------------------------------------------
 http://git.sugarlabs.org/sugar-
 toolkit/mainline/blobs/master/src/sugar/profile.py#line190

 The file that is created as ~/.sugar/debug needs to have the following
 lines uncommented:

 {{{
 diff --git a/src/sugar/profile.py b/src/sugar/profile.py
 index df9237e..d4f0a73 100644
 --- a/src/sugar/profile.py
 +++ b/src/sugar/profile.py
 @@ -184,15 +184,15 @@ class Profile(object):
              'sugar debugging\n'\
              '# log files and features\n'\
              '#export LM_DEBUG=net\n' \
 -            '#export GABBLE_DEBUG=all\n' \
 -            '#export ' \
 +            'export GABBLE_DEBUG=all\n' \
 +            'export ' \
              'GABBLE_LOGFILE=$HOME/.sugar/default/logs/telepathy-
 gabble.log\n' \
 -            '#export SALUT_DEBUG=all\n' \
 -            '#export ' \
 +            'export SALUT_DEBUG=all\n' \
 +            'export ' \
              'SALUT_LOGFILE=$HOME/.sugar/default/logs/telepathy-
 salut.log\n' \
              '#export GIBBER_DEBUG=all\n' \
 -            '#export PRESENCESERVICE_DEBUG=1\n' \
 -            '#export SUGAR_LOGGER_LEVEL=debug\n\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)
 }}}

 We will turn off the debug logs again at the 'regression-fixes-only
 milestone'.

-- 
Ticket URL: <http://dev.laptop.org/ticket/10661>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system


More information about the Bugs mailing list