From 292b39dda8b4895b78f6ebff22409f40319e02e9 Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Sun, 1 May 2022 13:14:19 +0200 Subject: [PATCH] feat: Improve inode cache logging --- src/InodeCache.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/InodeCache.cpp b/src/InodeCache.cpp index 815e6aba6..15a339280 100644 --- a/src/InodeCache.cpp +++ b/src/InodeCache.cpp @@ -1,4 +1,4 @@ -// Copyright (C) 2020-2021 Joel Rosdahl and other contributors +// Copyright (C) 2020-2022 Joel Rosdahl and other contributors // // See doc/AUTHORS.adoc for a complete list of contributors. // @@ -254,8 +254,6 @@ InodeCache::with_bucket(const Digest& key_digest, bool InodeCache::create_new_file(const std::string& filename) { - LOG_RAW("Creating a new inode cache"); - // Create the new file to a temporary name to prevent other processes from // mapping it before it is fully initialized. TemporaryFile tmp_file(filename); @@ -312,6 +310,7 @@ InodeCache::create_new_file(const std::string& filename) return false; } + LOG("Created a new inode cache {}", filename); return true; } @@ -452,6 +451,7 @@ InodeCache::drop() if (unlink(file.c_str()) != 0) { return false; } + LOG("Dropped inode cache {}", file); if (m_sr) { munmap(m_sr, sizeof(SharedRegion)); m_sr = nullptr; -- 2.47.2