diff options
author | spang <spang@chromium.org> | 2015-04-23 13:11:28 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-04-23 20:11:37 +0000 |
commit | ce89b915d34a6bbe645da530b61bc3461e49f70f (patch) | |
tree | 1a2441a2b9625c5256b673b087710263d9391584 /rlz | |
parent | cf1246953c99763d1ccc08afd0b62cd23d5c491c (diff) | |
download | chromium_src-ce89b915d34a6bbe645da530b61bc3461e49f70f.zip chromium_src-ce89b915d34a6bbe645da530b61bc3461e49f70f.tar.gz chromium_src-ce89b915d34a6bbe645da530b61bc3461e49f70f.tar.bz2 |
rlz: Silence spam from RecursiveCrossProcessLock
Change perror() to VPLOG() to avoid spamming the console with these
errors (they reliably occur on the login screen).
BUG=463306
TEST=build, boot, & login to pixel
Review URL: https://codereview.chromium.org/1096203003
Cr-Commit-Position: refs/heads/master@{#326621}
Diffstat (limited to 'rlz')
-rw-r--r-- | rlz/lib/recursive_cross_process_lock_posix.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rlz/lib/recursive_cross_process_lock_posix.cc b/rlz/lib/recursive_cross_process_lock_posix.cc index c44cacf..965bd9a 100644 --- a/rlz/lib/recursive_cross_process_lock_posix.cc +++ b/rlz/lib/recursive_cross_process_lock_posix.cc @@ -43,7 +43,7 @@ bool RecursiveCrossProcessLock::TryGetCrossProcessLock( CHECK(file_lock_ == -1); file_lock_ = open(lock_filename.value().c_str(), O_RDWR | O_CREAT, 0666); if (file_lock_ == -1) { - perror("open"); + VPLOG(1) << "Failed to open: " << lock_filename.value(); return false; } @@ -58,7 +58,7 @@ bool RecursiveCrossProcessLock::TryGetCrossProcessLock( } if (flock_result == -1) { - perror("flock"); + VPLOG(1) << "Failed flock: " << lock_filename.value(); close(file_lock_); file_lock_ = -1; return false; |