Skip to content

Commit

Permalink
apply review suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
tzzed committed Aug 22, 2023
1 parent de76ddd commit b0b45b3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGES_NEXT_RELEASE
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
- Fix: logDeprecate not working correctly (`geo:json` wrongly considered as deprecated)
- Fix improve error traces (#4387)
6 changes: 3 additions & 3 deletions src/lib/ngsi/ContextAttribute.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ void ContextAttribute::bsonAppendAttrValue
break;

default:
LM_E(("Runtime Error (unknown attribute type: %d on attribute %s)", valueType, name.c_str()));
LM_E(("Runtime Error (unknown attribute value type: %d on attribute %s)", valueType, name.c_str()));
}
}

Expand Down Expand Up @@ -217,7 +217,7 @@ bool ContextAttribute::calculateOperator
return false;

default:
LM_E(("Runtime Error (unknown attribute type: %d on attribute %s)", valueType, name.c_str()));
LM_E(("Runtime Error (unknown attribute value type: %d on attribute %s)", valueType, name.c_str()));
return false;
}

Expand Down Expand Up @@ -247,7 +247,7 @@ bool ContextAttribute::calculateOperator
return false;

default:
LM_E(("Runtime Error (unknown attribute type: %d on attribute %s)", valueType, name.c_str()));
LM_E(("Runtime Error (unknown attribute value type: %d on attribute %s)", valueType, name.c_str()));
return false;
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/lib/ngsi/ContextAttributeVector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ void ContextAttributeVector::applyUpdateOperators(void)
break;

default:
LM_E(("Runtime Error (unknown attribute type: %d on attribute %s)", upOp->valueType, vec[ix]->name.c_str()));
LM_E(("Runtime Error (unknown attribute value type: %d on attribute %s)", upOp->valueType, vec[ix]->name.c_str()));
}

// Replace old compound value (with $push) with the new one ([])
Expand Down Expand Up @@ -705,7 +705,7 @@ void ContextAttributeVector::applyUpdateOperators(void)
break;

default:
LM_E(("Runtime Error (unknown attribute type: %d on attribute %s)", upOp->valueType, vec[ix]->name.c_str()));
LM_E(("Runtime Error (unknown attribute value type: %d on attribute %s)", upOp->valueType, vec[ix]->name.c_str()));
}

// Replace old compound value (with $push) with the new one ([])
Expand Down

0 comments on commit b0b45b3

Please sign in to comment.