Skip to content

Commit

Permalink
Merge pull request #4372 from telefonicaid/bugfix/logdeprecate-fail-r…
Browse files Browse the repository at this point in the history
…elease-3.10.0

FIX logDeprecate not working correctly (release/3.10.0)
  • Loading branch information
mapedraza authored Jun 12, 2023
2 parents 4a0c1f2 + d333abc commit 1bd2217
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES_NEXT_RELEASE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Fix: logDeprecate not working correctly (`geo:json` wrongly considered as deprecated)
2 changes: 1 addition & 1 deletion src/lib/mongoBackend/location.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ static bool getGeoJson
return true;
}

if ((logDeprecate) && ((caP->type == GEO_POINT) || (caP->type == GEO_LINE) || (caP->type == GEO_BOX) || (caP->type != GEO_POLYGON)))
if ((logDeprecate) && ((caP->type == GEO_POINT) || (caP->type == GEO_LINE) || (caP->type == GEO_BOX) || (caP->type == GEO_POLYGON)))
{
LM_W(("Deprecated usage of %s detected in attribute %s at entity update, please use geo:json instead", caP->type.c_str(), caP->name.c_str()));
}
Expand Down

0 comments on commit 1bd2217

Please sign in to comment.