Skip to content

Commit 106841f

Browse files
committed
changed ALOG to WLOG for remaining deprecation warnings.
1 parent 3aaa012 commit 106841f

3 files changed

Lines changed: 10 additions & 10 deletions

File tree

OREAnalytics/orea/scenario/scenariosimmarketparameters.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -813,7 +813,7 @@ void ScenarioSimMarketParameters::fromXML(XMLNode* root) {
813813
auto keys = XMLUtils::getChildrenValues(nodeChild, "Keys", "Key", false);
814814
if(!ccys.empty()) {
815815
keys.insert(keys.end(), ccys.begin(), ccys.end());
816-
ALOG("ScenarioSimMarketParameters: SwaptionVolatilities/Currencies is deprecated, use Keys instead.");
816+
WLOG("ScenarioSimMarketParameters: SwaptionVolatilities/Currencies is deprecated, use Keys instead.");
817817
}
818818
setSwapVolKeys(keys);
819819
QL_REQUIRE(!keys.empty(), "SwaptionVolatilities needs at least one currency");
@@ -833,7 +833,7 @@ void ScenarioSimMarketParameters::fromXML(XMLNode* root) {
833833
string ccyAttr = XMLUtils::getAttribute(expiryNode, "ccy");
834834
if (!ccyAttr.empty()) {
835835
key = ccyAttr;
836-
ALOG("ScenarioSimMarketParameters: SwaptionVolatilities/Expiries: 'ccy' attribute is deprecated, "
836+
WLOG("ScenarioSimMarketParameters: SwaptionVolatilities/Expiries: 'ccy' attribute is deprecated, "
837837
"use 'key' instead.");
838838
}
839839
}
@@ -858,7 +858,7 @@ void ScenarioSimMarketParameters::fromXML(XMLNode* root) {
858858
string ccyAttr = XMLUtils::getAttribute(termNode, "ccy");
859859
if (!ccyAttr.empty()) {
860860
key = ccyAttr;
861-
ALOG("ScenarioSimMarketParameters: SwaptionVolatilities/Terms: 'ccy' attribute is deprecated, "
861+
WLOG("ScenarioSimMarketParameters: SwaptionVolatilities/Terms: 'ccy' attribute is deprecated, "
862862
"use 'key' instead.");
863863
}
864864
}
@@ -982,7 +982,7 @@ void ScenarioSimMarketParameters::fromXML(XMLNode* root) {
982982
auto keys = XMLUtils::getChildrenValues(nodeChild, "Keys", "Key", false);
983983
if(!ccys.empty()) {
984984
keys.insert(keys.end(), ccys.begin(), ccys.end());
985-
ALOG("ScenarioSimMarketParameters: CapFloorVolatilities/Currencies is deprecated, use Keys instead.");
985+
WLOG("ScenarioSimMarketParameters: CapFloorVolatilities/Currencies is deprecated, use Keys instead.");
986986
}
987987
setCapFloorVolKeys(keys);
988988
QL_REQUIRE(!keys.empty(), "CapFloorVolatilities needs at least one entry");
@@ -1003,7 +1003,7 @@ void ScenarioSimMarketParameters::fromXML(XMLNode* root) {
10031003
string ccyAttr = XMLUtils::getAttribute(expiryNode, "ccy");
10041004
if (!ccyAttr.empty()) {
10051005
key = ccyAttr;
1006-
ALOG("ScenarioSimMarketParameters: CapFloorVolatilities/Expiries: 'ccy' attribute is deprecated, "
1006+
WLOG("ScenarioSimMarketParameters: CapFloorVolatilities/Expiries: 'ccy' attribute is deprecated, "
10071007
"use 'key' instead.");
10081008
}
10091009
}
@@ -1028,7 +1028,7 @@ void ScenarioSimMarketParameters::fromXML(XMLNode* root) {
10281028
string ccyAttr = XMLUtils::getAttribute(strikeNode, "ccy");
10291029
if (!ccyAttr.empty()) {
10301030
key = ccyAttr;
1031-
ALOG("ScenarioSimMarketParameters: CapFloorVolatilities/Strikes: 'ccy' attribute is deprecated, "
1031+
WLOG("ScenarioSimMarketParameters: CapFloorVolatilities/Strikes: 'ccy' attribute is deprecated, "
10321032
"use 'key' instead.");
10331033
}
10341034
}

OREAnalytics/orea/scenario/sensitivityscenariodata.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ void SensitivityScenarioData::fromXML(XMLNode* root) {
276276
string ccyAttr = XMLUtils::getAttribute(child, "ccy");
277277
if(!ccyAttr.empty()) {
278278
key = ccyAttr;
279-
ALOG("SensitivityData: attribute 'ccy' for SwaptionVolatilities is deprecated, use 'key' instead.");
279+
WLOG("SensitivityData: attribute 'ccy' for SwaptionVolatilities is deprecated, use 'key' instead.");
280280
}
281281
}
282282
GenericYieldVolShiftData data;
@@ -315,7 +315,7 @@ void SensitivityScenarioData::fromXML(XMLNode* root) {
315315
string ccyAttr = XMLUtils::getAttribute(child, "ccy");
316316
if(!ccyAttr.empty()) {
317317
key = ccyAttr;
318-
ALOG("SensitivityData: attribute 'ccy' for CapFloorVolatilities is deprecated, use 'key' instead.");
318+
WLOG("SensitivityData: attribute 'ccy' for CapFloorVolatilities is deprecated, use 'key' instead.");
319319
}
320320
}
321321
auto data = boost::make_shared<CapFloorVolShiftData>();
@@ -582,7 +582,7 @@ void SensitivityScenarioData::fromXML(XMLNode* root) {
582582
string ccyAttr = XMLUtils::getAttribute(child, "ccy");
583583
if(!ccyAttr.empty()) {
584584
key = ccyAttr;
585-
ALOG("SensitivityData: attribute 'ccy' for CapFloorVolatilities is deprecated, use 'key' instead.");
585+
WLOG("SensitivityData: attribute 'ccy' for CapFloorVolatilities is deprecated, use 'key' instead.");
586586
}
587587
}
588588
CapFloorVolShiftParData data(*capFloorVolShiftData_.find(key)->second);

OREAnalytics/orea/scenario/stressscenariodata.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ void StressTestScenarioData::fromXML(XMLNode* root) {
231231
string ccyAttr = XMLUtils::getAttribute(child, "ccy");
232232
if(!ccyAttr.empty()) {
233233
key = ccyAttr;
234-
ALOG("StressScenarioData: 'ccy' is deprecated as an attribute for CapFloorVolatilities, use 'key' instead.");
234+
WLOG("StressScenarioData: 'ccy' is deprecated as an attribute for CapFloorVolatilities, use 'key' instead.");
235235
}
236236
}
237237
CapFloorVolShiftData data;

0 commit comments

Comments
 (0)