Changeset 1593

Show
Ignore:
Timestamp:
06/21/08 00:32:20 (4 months ago)
Author:
alo
Message:

--

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • cherokee/trunk/ChangeLog

    r1592 r1593  
    112008-06-20  Alvaro Lopez Ortega  <alvaro@alobbs.com> 
     2 
     3        * contrib/tracelor.py (main): Highlight the words provided in the 
     4        script arguments. 
    25 
    36        * contrib/tracelor.py, contrib/Makefile.am (EXTRA_DIST): Added a 
  • cherokee/trunk/contrib/tracelor.py

    r1592 r1593  
    1515 
    1616RESET_COLOR = "\033[0m" 
     17HIGHLIGHT   = "\033[1;31;40m" 
    1718 
    1819_threads = {} 
     
    5556                line = '%s%s%s %s' % (color, thread, RESET_COLOR, line[end+2:]) 
    5657 
     58        # Words 
     59        for w in sys.argv: 
     60            line = line.replace(w, HIGHLIGHT + w + RESET_COLOR) 
     61 
    5762        # Nothing else to do.. 
    5863        print line,