Changeset 55284 in webkit


Ignore:
Timestamp:
Feb 26, 2010 8:19:43 AM (14 years ago)
Author:
eric@webkit.org
Message:

2010-02-26 Chris Jerdonek <Chris Jerdonek>

Reviewed by Eric Seidel.

Changed the diff_parser module to log to a module-specific
logging.logger rather than the root logger.

https://bugs.webkit.org/show_bug.cgi?id=35391

  • Scripts/webkitpy/diff_parser.py:
Location:
trunk/WebKitTools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r55280 r55284  
     12010-02-26  Chris Jerdonek  <cjerdonek@webkit.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        Changed the diff_parser module to log to a module-specific
     6        logging.logger rather than the root logger.
     7
     8        https://bugs.webkit.org/show_bug.cgi?id=35391
     9
     10        * Scripts/webkitpy/diff_parser.py:
     11
    1122010-02-26  Csaba Osztrogonác  <ossy@webkit.org>
    213
  • trunk/WebKitTools/Scripts/webkitpy/diff_parser.py

    r52739 r55284  
    3232import re
    3333
     34_log = logging.getLogger("webkitpy.diff_parser")
    3435
    3536_regexp_compile_cache = {}
     
    139140            if lines_changed:
    140141                if state != _DECLARED_FILE_PATH and state != _PROCESSING_CHUNK:
    141                     logging.error('Unexpected line change without file path declaration: %r' % line)
     142                    _log.error('Unexpected line change without file path '
     143                               'declaration: %r' % line)
    142144                old_diff_line = int(lines_changed.group('OldStartLine'))
    143145                new_diff_line = int(lines_changed.group('NewStartLine'))
     
    160162                    pass
    161163                else:
    162                     logging.error('Unexpected diff format when parsing a chunk: %r' % line)
     164                    _log.error('Unexpected diff format when parsing a '
     165                               'chunk: %r' % line)
Note: See TracChangeset for help on using the changeset viewer.