summaryrefslogtreecommitdiffstats
path: root/rlz
diff options
context:
space:
mode:
authorspang <spang@chromium.org>2015-04-23 13:11:28 -0700
committerCommit bot <commit-bot@chromium.org>2015-04-23 20:11:37 +0000
commitce89b915d34a6bbe645da530b61bc3461e49f70f (patch)
tree1a2441a2b9625c5256b673b087710263d9391584 /rlz
parentcf1246953c99763d1ccc08afd0b62cd23d5c491c (diff)
downloadchromium_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.cc4
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;