~etulfetulf/fbuntu/0.3

« back to all changes in this revision

Viewing changes to fbuntu.py

  • Committer: Greg Auger
  • Date: 2012-04-29 08:21:28 UTC
  • Revision ID: gregory.auger@googlemail.com-20120429082128-3y15clzbvluq1m68
Stop debug.log getting too long

Show diffs side-by-side

added added

removed removed

Lines of Context:
125
125
 
126
126
    import sys, traceback, os
127
127
    
 
128
    # Shorten log
 
129
    os.system('tail -n 500 debug.log > debug.short')
 
130
    os.system('mv debug.short debug.log ')
 
131
    
128
132
    logger = logging.getLogger("Fbuntu2")
129
133
    
130
134
    def custom_exceptionHook(type, value, tb):