summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage/storage_engine_metadata.cpp
diff options
context:
space:
mode:
authorHenrik Edin <henrik.edin@mongodb.com>2020-05-14 12:43:18 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-05-15 13:28:37 +0000
commitb3bb8e9c099b0a8cecdf5d76f9109af927eff0d3 (patch)
tree352f7f2f9c3d158d8d9e691443b1c69da3e9f9af /src/mongo/db/storage/storage_engine_metadata.cpp
parent0b414d2c979dbb74b55b4bcced476e25208b15e5 (diff)
downloadmongo-b3bb8e9c099b0a8cecdf5d76f9109af927eff0d3.tar.gz
SERVER-48148 Log cleanup in db/storage
Diffstat (limited to 'src/mongo/db/storage/storage_engine_metadata.cpp')
-rw-r--r--src/mongo/db/storage/storage_engine_metadata.cpp24
1 files changed, 10 insertions, 14 deletions
diff --git a/src/mongo/db/storage/storage_engine_metadata.cpp b/src/mongo/db/storage/storage_engine_metadata.cpp
index d72941ae68b..07b21b448e1 100644
--- a/src/mongo/db/storage/storage_engine_metadata.cpp
+++ b/src/mongo/db/storage/storage_engine_metadata.cpp
@@ -85,10 +85,10 @@ std::unique_ptr<StorageEngineMetadata> StorageEngineMetadata::forPath(const std:
metadata.reset(new StorageEngineMetadata(dbpath));
Status status = metadata->read();
if (!status.isOK()) {
- LOGV2_ERROR(22288,
- "Unable to read the storage engine metadata file: {status}",
- "status"_attr = status);
- fassertFailedNoTrace(28661);
+ LOGV2_FATAL_NOTRACE(28661,
+ "Unable to read the storage engine metadata file: {error}",
+ "Unable to read the storage engine metadata file",
+ "error"_attr = status);
}
}
return metadata;
@@ -222,8 +222,9 @@ void flushMyDirectory(const boost::filesystem::path& file) {
// massert(13652, str::stream() << "Couldn't find parent dir for file: " << file.string(),);
if (!file.has_branch_path()) {
LOGV2(22283,
- "warning flushMyDirectory couldn't find parent dir for file: {file_string}",
- "file_string"_attr = file.string());
+ "warning flushMyDirectory couldn't find parent dir for file: {file}",
+ "flushMyDirectory couldn't find parent dir for file",
+ "file"_attr = file.generic_string());
return;
}
@@ -244,14 +245,9 @@ void flushMyDirectory(const boost::filesystem::path& file) {
LOGV2_OPTIONS(
22285,
{logv2::LogTag::kStartupWarnings},
- "\tWARNING: This file system is not supported. For further information see:");
- LOGV2_OPTIONS(22286,
- {logv2::LogTag::kStartupWarnings},
- "\t\t\thttp://dochub.mongodb.org/core/unsupported-filesystems");
- LOGV2_OPTIONS(22287,
- {logv2::LogTag::kStartupWarnings},
- "\t\tPlease notify MongoDB, Inc. if an unlisted filesystem generated "
- "this warning.");
+ "This file system is not supported. For further information see: "
+ "http://dochub.mongodb.org/core/unsupported-filesystems Please notify MongoDB, "
+ "Inc. if an unlisted filesystem generated this warning");
_warnedAboutFilesystem = true;
}
} else {