Log error when getMetadata fails |
||
Issue descriptionCurrently when getMetadata operation fails Files app just silently returns a default value. This makes debugging issues with getMetadata hard to spot. We should log the error before returning the default value to make issues with getMetadata more visible during development. Important: We shouldn't use console.error() because in some conditions this error is sort of expected and it makes tests flaky, because console.error() increases a global error counter which is checked on tests. - crbug.com/860647
,
Jul 10
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/0be46892ccf3818f02e4bee4dc794be795aca389 commit 0be46892ccf3818f02e4bee4dc794be795aca389 Author: Luciano Pacheco <lucmult@chromium.org> Date: Tue Jul 10 05:06:14 2018 Add WARN logging for getMetadata error Add the error and the file full path on the log, this allow easier debugging for issues with getMetadata. Bug: 862040 Cq-Include-Trybots: luci.chromium.try:closure_compilation Change-Id: I00226c0a472961d98dc923bfcce280c2f87bbd1d Reviewed-on: https://chromium-review.googlesource.com/1128695 Commit-Queue: Luciano Pacheco <lucmult@chromium.org> Reviewed-by: Noel Gordon <noel@chromium.org> Cr-Commit-Position: refs/heads/master@{#573622} [modify] https://crrev.com/0be46892ccf3818f02e4bee4dc794be795aca389/ui/file_manager/file_manager/foreground/js/metadata/file_system_metadata_provider.js
,
Jul 10
|
||
►
Sign in to add a comment |
||
Comment 1 by lucmult@chromium.org
, Jul 10