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

Issue 875083002: [Android] Provide a logging suppressing context manager (Closed)

Created:
5 years, 11 months ago by perezju
Modified:
5 years, 11 months ago
Reviewers:
jbudorick
CC:
chromium-reviews, klundberg+watch_chromium.org, yfriedman+watch_chromium.org, jbudorick+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Android] Provide a logging suppressing context manager Using this we will be able to write: with logging_utils.SuppressLogging(): # all but CRITICAL logging messages are suppressed logging.info('just doing some thing') # not shown logging.critical('something really bad happened') # still shown BUG= Committed: https://crrev.com/4bf260f81b3909da9099e5bcac948cbc0ca5e295 Cr-Commit-Position: refs/heads/master@{#313083}

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -0 lines) Patch
A build/android/pylib/utils/logging_utils.py View 1 chunk +27 lines, -0 lines 1 comment Download

Messages

Total messages: 9 (2 generated)
perezju
5 years, 11 months ago (2015-01-26 16:03:38 UTC) #2
jbudorick
https://codereview.chromium.org/875083002/diff/1/build/android/pylib/utils/logging_utils.py File build/android/pylib/utils/logging_utils.py (right): https://codereview.chromium.org/875083002/diff/1/build/android/pylib/utils/logging_utils.py#newcode9 build/android/pylib/utils/logging_utils.py:9: def SuppressLogging(level=logging.ERROR): My only comment on this is that ...
5 years, 11 months ago (2015-01-26 16:07:32 UTC) #3
perezju
On 2015/01/26 16:07:32, jbudorick wrote: > https://codereview.chromium.org/875083002/diff/1/build/android/pylib/utils/logging_utils.py > File build/android/pylib/utils/logging_utils.py (right): > > https://codereview.chromium.org/875083002/diff/1/build/android/pylib/utils/logging_utils.py#newcode9 > ...
5 years, 11 months ago (2015-01-26 16:23:49 UTC) #4
jbudorick
On 2015/01/26 16:23:49, perezju wrote: > On 2015/01/26 16:07:32, jbudorick wrote: > > > https://codereview.chromium.org/875083002/diff/1/build/android/pylib/utils/logging_utils.py ...
5 years, 11 months ago (2015-01-26 16:29:24 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/875083002/1
5 years, 11 months ago (2015-01-26 16:35:53 UTC) #7
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years, 11 months ago (2015-01-26 17:34:34 UTC) #8
commit-bot: I haz the power
5 years, 11 months ago (2015-01-26 17:35:27 UTC) #9
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/4bf260f81b3909da9099e5bcac948cbc0ca5e295
Cr-Commit-Position: refs/heads/master@{#313083}

Powered by Google App Engine
This is Rietveld 408576698