summaryrefslogtreecommitdiff
path: root/src/util/LockFile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/LockFile.cpp')
-rw-r--r--src/util/LockFile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/LockFile.cpp b/src/util/LockFile.cpp
index 0d7e96e8..f90b7626 100644
--- a/src/util/LockFile.cpp
+++ b/src/util/LockFile.cpp
@@ -178,7 +178,6 @@ LockFile::do_acquire(const bool blocking)
}
int saved_errno = errno;
- LOG("Could not acquire {}: {}", m_lock_file, strerror(saved_errno));
if (saved_errno == ENOENT) {
// Directory doesn't exist?
if (Util::create_dir(Util::dir_name(m_lock_file))) {
@@ -186,6 +185,7 @@ LockFile::do_acquire(const bool blocking)
continue;
}
}
+ LOG("Could not acquire {}: {}", m_lock_file, strerror(saved_errno));
if (saved_errno == EPERM) {
// The file system does not support symbolic links. We have no choice but