aboutsummaryrefslogtreecommitdiff
path: root/pw_file
diff options
context:
space:
mode:
authorArmando Montanez <amontanez@google.com>2021-11-10 18:00:27 -0800
committerCQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>2021-11-30 02:52:24 +0000
commite2e23280635baadc54989f6327b01e8808c4e926 (patch)
treef717208edef8bada969b8cdcd96b7ffa9755f702 /pw_file
parent30c5d38058947833c528856f05a76867ca76301a (diff)
downloadpigweed-e2e23280635baadc54989f6327b01e8808c4e926.tar.gz
pw_file: Minor logging tweak
Silences NOT_FOUND error logging, as that isn't an error but instead is an expected response. Change-Id: Ia6faa65ed3a19503f53bf1299d7d717c275f12c3 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/71225 Pigweed-Auto-Submit: Armando Montanez <amontanez@google.com> Reviewed-by: Alexei Frolov <frolv@google.com> Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
Diffstat (limited to 'pw_file')
-rw-r--r--pw_file/flat_file_system.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/pw_file/flat_file_system.cc b/pw_file/flat_file_system.cc
index 0cafd6b10..61ffab880 100644
--- a/pw_file/flat_file_system.cc
+++ b/pw_file/flat_file_system.cc
@@ -60,9 +60,11 @@ void FlatFileSystemService::EnumerateAllFiles(RawServerWriter& writer) {
// For now, don't try to pack entries.
pw::file::ListResponse::MemoryEncoder encoder(writer.PayloadBuffer());
if (Status status = EnumerateFile(*entry, encoder); !status.ok()) {
- PW_LOG_ERROR("Failed to enumerate file (id: %u) with status %d",
- static_cast<unsigned>(entry->FileId()),
- static_cast<int>(status.code()));
+ if (status != Status::NotFound()) {
+ PW_LOG_ERROR("Failed to enumerate file (id: %u) with status %d",
+ static_cast<unsigned>(entry->FileId()),
+ static_cast<int>(status.code()));
+ }
continue;
}