@@ -121,14 +121,14 @@ void ScriptedTrade::setIsdaTaxonomyFields() {
121121 additionalData_[" isdaSubProduct" ] = string (" Other" );
122122 additionalData_[" isdaTransaction" ] = string (" " );
123123 } else if (scheduleProductClass_ == " Commodity" ) {
124- WLOG (" ISDA taxonomy for trade " << id () << " and product class " << scheduleProductClass_
124+ DLOG (" ISDA taxonomy for trade " << id () << " and product class " << scheduleProductClass_
125125 << " follows the Equity template" );
126126 additionalData_[" isdaAssetClass" ] = string (" Commodity" );
127127 additionalData_[" isdaBaseProduct" ] = string (" Other" );
128128 additionalData_[" isdaSubProduct" ] = string (" " );
129129 additionalData_[" isdaTransaction" ] = string (" " );
130130 } else {
131- ALOG (" ISDA taxonomy not set for trade " << id () << " and product class " << scheduleProductClass_);
131+ DLOG (" ISDA taxonomy not set for trade " << id () << " and product class " << scheduleProductClass_);
132132 }
133133}
134134
@@ -143,7 +143,7 @@ QuantLib::Real ScriptedTrade::notional() const {
143143 } catch (const std::exception& e) {
144144 if (st->lastCalculationWasValid ()) {
145145 // calculation was valid, just the result is not provided
146- ALOG ( " error when retrieving notional : " << e.what () << " , return null" );
146+ DLOG ( " notional was not retrieved : " << e.what () << " , return null" );
147147 } else {
148148 // calculation threw an error, propagate this
149149 QL_FAIL (e.what ());
@@ -164,14 +164,14 @@ std::string ScriptedTrade::notionalCurrency() const {
164164 } catch (const std::exception& e) {
165165 if (st->lastCalculationWasValid ()) {
166166 // calculation was valid, just the result is not provided
167- ALOG ( " error when retrieving notional ccy : " << e.what () << " , return empty string" );
167+ DLOG ( " notional ccy was not retrieved : " << e.what () << " , return empty string" );
168168 } else {
169169 // calculation threw an error, propagate this
170170 QL_FAIL (e.what ());
171171 }
172172 }
173173 // if not provided, return an empty string
174- return " " ;
174+ return std::string () ;
175175}
176176
177177void ScriptedTrade::clear () {
0 commit comments