diff options
author | Henrik Edin <henrik.edin@mongodb.com> | 2020-03-02 14:52:46 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-03-03 18:14:05 +0000 |
commit | 2803adc3ba76f87101d493cb940df4e0f53c7879 (patch) | |
tree | 73d5e0dbcf26bcff51fecc469b5e31d01c918585 /src/mongo/logv2/attributes.cpp | |
parent | a68774045ce42d55e82236408bd9cf004c54d12a (diff) | |
download | mongo-2803adc3ba76f87101d493cb940df4e0f53c7879.tar.gz |
SERVER-46520 Add mechanism to emit uassert as part of a logv2 log statement
Diffstat (limited to 'src/mongo/logv2/attributes.cpp')
-rw-r--r-- | src/mongo/logv2/attributes.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/logv2/attributes.cpp b/src/mongo/logv2/attributes.cpp index f767f3ae94c..c53c030a988 100644 --- a/src/mongo/logv2/attributes.cpp +++ b/src/mongo/logv2/attributes.cpp @@ -83,6 +83,11 @@ const boost::log::attribute_name& truncation() { return attr; } +const boost::log::attribute_name& userassert() { + static const boost::log::attribute_name attr("userassert"); + return attr; +} + } // namespace attributes } // namespace logv2 } // namespace mongo |