|
|
Chromium Code Reviews|
Created:
3 years, 11 months ago by BigBossZhiling Modified:
3 years, 11 months ago Reviewers:
jbudorick CC:
chromium-reviews, mikecase+watch_chromium.org, jbudorick+watch_chromium.org, agrieve+watch_chromium.org Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionChange the logging of NotBootstrappedError.
Previously we log even the stacktrace of NotBootstrappedError. It turned
out that it really pollutes log by spamming the log with
stacktraces.
In this cl, we changed the logging of error to just one line.
BUG=675666
Review-Url: https://codereview.chromium.org/2622693003
Cr-Commit-Position: refs/heads/master@{#443013}
Committed: https://chromium.googlesource.com/chromium/src/+/87f7645fd8cf2ce0c2a6964a5b9674b875063319
Patch Set 1 #
Total comments: 1
Patch Set 2 : debug log #Patch Set 3 : quick fix #
Total comments: 2
Patch Set 4 : ffixes #Patch Set 5 : fixes #Messages
Total messages: 19 (9 generated)
Description was changed from ========== Change the logging of NotBootstrappedError. Previously we log even the stacktrace of NotBootstrappedError. It turned out that it really pollutes log by spamming the log with stacktraces. In this cl, we changed the logging of error to just one line. BUG=675666 ========== to ========== Change the logging of NotBootstrappedError. Previously we log even the stacktrace of NotBootstrappedError. It turned out that it really pollutes log by spamming the log with stacktraces. In this cl, we changed the logging of error to just one line. BUG=675666 ==========
hzl@google.com changed reviewers: + jbudorick@chromium.org
The CQ bit was checked by hzl@google.com to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
I'm worried that the scary part isn't the log message but the exception trace. Maybe we could log that only when runniwht with log level DEBUG? https://codereview.chromium.org/2622693003/diff/1/build/android/pylib/android... File build/android/pylib/android/logdog_logcat_monitor.py (right): https://codereview.chromium.org/2622693003/diff/1/build/android/pylib/android... build/android/pylib/android/logdog_logcat_monitor.py:32: 'Unable to enable logdog_logcat, %s.', str(e).split(': ')[1]) I'm not sure that we ought to be messing with the error text from the NotBootstrappedError.
I'm worried that the scary part isn't the log message but the exception trace. Maybe we could log that only when runniwht with log level DEBUG?
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_compile_dbg_ng on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL)
https://codereview.chromium.org/2622693003/diff/40001/build/android/pylib/and... File build/android/pylib/android/logdog_logcat_monitor.py (right): https://codereview.chromium.org/2622693003/diff/40001/build/android/pylib/and... build/android/pylib/android/logdog_logcat_monitor.py:31: logging.exception('Unable to enable logdog_logcat: NotBootstrapped.') This call logs the exception trace. To log the exception only at debug level, you'd do something like: if logging.getLogger().isEnabledFor(logging.DEBUG): logging.exception(...) (you could also use getEffectiveLevel() == logging.DEBUG)
https://codereview.chromium.org/2622693003/diff/40001/build/android/pylib/and... File build/android/pylib/android/logdog_logcat_monitor.py (right): https://codereview.chromium.org/2622693003/diff/40001/build/android/pylib/and... build/android/pylib/android/logdog_logcat_monitor.py:31: logging.exception('Unable to enable logdog_logcat: NotBootstrapped.') On 2017/01/11 01:54:03, jbudorick wrote: > This call logs the exception trace. To log the exception only at debug level, > you'd do something like: > > if logging.getLogger().isEnabledFor(logging.DEBUG): > logging.exception(...) > > (you could also use getEffectiveLevel() == logging.DEBUG) Done.
lgtm
The CQ bit was checked by hzl@google.com
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch.
Bot data: {"patchset_id": 80001, "attempt_start_ts": 1484161666429960,
"parent_rev": "1b5567e091c5aafff29f019055685e962979301a", "commit_rev":
"87f7645fd8cf2ce0c2a6964a5b9674b875063319"}
Message was sent while issue was closed.
Description was changed from ========== Change the logging of NotBootstrappedError. Previously we log even the stacktrace of NotBootstrappedError. It turned out that it really pollutes log by spamming the log with stacktraces. In this cl, we changed the logging of error to just one line. BUG=675666 ========== to ========== Change the logging of NotBootstrappedError. Previously we log even the stacktrace of NotBootstrappedError. It turned out that it really pollutes log by spamming the log with stacktraces. In this cl, we changed the logging of error to just one line. BUG=675666 Review-Url: https://codereview.chromium.org/2622693003 Cr-Commit-Position: refs/heads/master@{#443013} Committed: https://chromium.googlesource.com/chromium/src/+/87f7645fd8cf2ce0c2a6964a5b96... ==========
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as https://chromium.googlesource.com/chromium/src/+/87f7645fd8cf2ce0c2a6964a5b96... |
