diff options
Diffstat (limited to 'src/dbwrapper.cpp')
-rw-r--r-- | src/dbwrapper.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dbwrapper.cpp b/src/dbwrapper.cpp index 479064d468..e0f153fd61 100644 --- a/src/dbwrapper.cpp +++ b/src/dbwrapper.cpp @@ -130,7 +130,7 @@ static void SetMaxOpenFiles(leveldb::Options *options) { options->max_open_files = 64; } #endif - LogPrint(BCLog::LEVELDB, "LevelDB using max_open_files=%d (default=%d)\n", + LogDebug(BCLog::LEVELDB, "LevelDB using max_open_files=%d (default=%d)\n", options->max_open_files, default_open_files); } @@ -299,7 +299,7 @@ bool CDBWrapper::WriteBatch(CDBBatch& batch, bool fSync) HandleError(status); if (log_memory) { double mem_after = DynamicMemoryUsage() / 1024.0 / 1024; - LogPrint(BCLog::LEVELDB, "WriteBatch memory usage: db=%s, before=%.1fMiB, after=%.1fMiB\n", + LogDebug(BCLog::LEVELDB, "WriteBatch memory usage: db=%s, before=%.1fMiB, after=%.1fMiB\n", m_name, mem_before, mem_after); } return true; @@ -310,7 +310,7 @@ size_t CDBWrapper::DynamicMemoryUsage() const std::string memory; std::optional<size_t> parsed; if (!DBContext().pdb->GetProperty("leveldb.approximate-memory-usage", &memory) || !(parsed = ToIntegral<size_t>(memory))) { - LogPrint(BCLog::LEVELDB, "Failed to get approximate-memory-usage property\n"); + LogDebug(BCLog::LEVELDB, "Failed to get approximate-memory-usage property\n"); return 0; } return parsed.value(); |