Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Unified Diff: tools/metrics/actions/extract_actions.py

Issue 850043009: Fix error introduced in extract_actions.py. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/metrics/actions/extract_actions.py
diff --git a/tools/metrics/actions/extract_actions.py b/tools/metrics/actions/extract_actions.py
index 1c2836cf64e531398ec1aa10b6a3dfb2fbb02c8d..94dcf225a976b6da9564813e46954c6b83af7868 100755
--- a/tools/metrics/actions/extract_actions.py
+++ b/tools/metrics/actions/extract_actions.py
@@ -483,7 +483,7 @@ def GrepForActions(path, actions):
break
actions.add(action_name)
except InvalidStatementException, e:
- log.warning(str(e))
+ logging.warning(str(e))
line_number = 0
for line in open(path):
@@ -491,8 +491,8 @@ def GrepForActions(path, actions):
if COMPUTED_ACTION_RE.search(line):
# Warn if this file shouldn't be calling RecordComputedAction.
if os.path.basename(path) not in KNOWN_COMPUTED_USERS:
- log.warning('%s has RecordComputedAction statement on line %d' %
- (path, line_number))
+ logging.warning('%s has RecordComputedAction statement on line %d' %
+ (path, line_number))
class WebUIActionsParser(HTMLParser):
"""Parses an HTML file, looking for all tags with a 'metric' attribute.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698