Skip to content

Commit 19a5059

Browse files
NathanielVolfangojenkins
authored andcommitted
QPR-11977 -- Add back useCounterparty CRIF match fields, and suppress structured messages during useCounterpartyOriginalPortfolio trade build. Also change blank integer fields from 0.0 to Null<Real>() so that they are filtered out in the JSON response
1 parent b2c6f8a commit 19a5059

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

OREData/ored/utilities/log.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ void Log::removeAllLoggers() {
106106
loggers_.clear();
107107
}
108108

109-
void Log::addExcludeFilter(const string& key, const std::function<bool(std::string)>& func) {
109+
void Log::addExcludeFilter(const string& key, const std::function<bool(const std::string&)> func) {
110110
excludeFilters_[key] = func;
111111
}
112112

OREData/ored/utilities/log.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ class Log : public QuantLib::Singleton<Log, std::integral_constant<bool, true>>
262262
*/
263263
void removeAllLoggers();
264264

265-
void addExcludeFilter(const std::string&, const std::function<bool(std::string)>&);
265+
void addExcludeFilter(const std::string&, const std::function<bool(const std::string&)>);
266266

267267
void removeExcludeFilter(const std::string&);
268268

@@ -344,7 +344,7 @@ class Log : public QuantLib::Singleton<Log, std::integral_constant<bool, true>>
344344

345345
mutable boost::shared_mutex mutex_;
346346

347-
std::map<std::string, std::function<bool(std::string)>> excludeFilters_;
347+
std::map<std::string, std::function<bool(const std::string&)>> excludeFilters_;
348348
};
349349

350350
/*!

0 commit comments

Comments
 (0)