Skip to content

Commit

Permalink
refacto: harmonized logs
Browse files Browse the repository at this point in the history
  • Loading branch information
tzzed committed Aug 15, 2023
1 parent c82a9f1 commit de76ddd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 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)", valueType));
LM_E(("Runtime Error (unknown attribute 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)", valueType));
LM_E(("Runtime Error (unknown attribute 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)", valueType));
LM_E(("Runtime Error (unknown attribute type: %d on attribute %s)", valueType, name.c_str()));
return false;
}
}
Expand All @@ -258,7 +258,7 @@ bool ContextAttribute::calculateOperator
}
else
{
LM_E(("Runtime Error (uknown operator: %s)", op.c_str()));
LM_E(("Runtime Error (unknown operator: %s)", op.c_str()));
return false;
}

Expand Down
6 changes: 3 additions & 3 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)", upOp->valueType));
LM_E(("Runtime Error (unknown attribute 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)", upOp->valueType));
LM_E(("Runtime Error (unknown attribute type: %d on attribute %s)", upOp->valueType, vec[ix]->name.c_str()));
}

// Replace old compound value (with $push) with the new one ([])
Expand All @@ -726,7 +726,7 @@ void ContextAttributeVector::applyUpdateOperators(void)
}
else
{
LM_E(("Runtime Error (uknown operator: %s", op.c_str()));
LM_E(("Runtime Error (unknown operator: %s", op.c_str()));
}
}
}
Expand Down

0 comments on commit de76ddd

Please sign in to comment.