Skip to content

Commit

Permalink
Attributes: use proper function for overwriting attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
felixjulianheitmann committed Jul 9, 2024
1 parent 9436b2e commit 1ecf32f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/spdlog/attributes.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class SPDLOG_API log_attributes {

void put(attr_map_t const& attributes) {
auto lck = lock();
attrs.insert(attributes.begin(), attributes.end());
for (auto const& attribute : attributes) attrs.insert_or_assign(attribute.first, attribute.second);
}
void put(const key_t& key, const value_t& value) { put({{key, value}}); }

Expand Down

0 comments on commit 1ecf32f

Please sign in to comment.