Skip to content

Commit 30a84ae

Browse files
pcaspersjenkins
authored andcommitted
QPR-12014 can not make this a structured warning, since we use that feature for commodity
1 parent 69ebecb commit 30a84ae

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

OREAnalytics/orea/cube/sensitivitycube.cpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
FITNESS FOR A PARTICULAR PURPOSE. See the license for more details.
1717
*/
1818

19-
#include <orea/app/structuredanalyticswarning.hpp>
2019
#include <orea/cube/sensitivitycube.hpp>
2120

2221
#include <ored/utilities/log.hpp>
@@ -208,11 +207,9 @@ Real SensitivityCube::npv(Size id) const { return cube_->getT0(id, 0); }
208207
namespace {
209208
Real scaling(const SensitivityCube::FactorData& fd) {
210209
if (fd.targetShiftSize == 0.0 || fd.actualShiftSize == 0) {
211-
StructuredAnalyticsWarningMessage("Sensitivity Calculation",
212-
"Scaling from different shift size is not possible, if that is configured.",
213-
"No shift sizes available for '" + ore::data::to_string(fd.rfkey) +
214-
"', check consistency of simulation and sensitivity config.")
215-
.log();
210+
WLOG("Sensitivity Calculation: Scaling from different shift size is not possible, if that is configured. No "
211+
"shift sizes available for '"
212+
<< fd.rfkey << "', check consistency of simulation and sensitivity config.");
216213
return 1.0;
217214
}
218215
return fd.targetShiftSize / fd.actualShiftSize;

0 commit comments

Comments
 (0)