Skip to content

Commit

Permalink
More traces in source code
Browse files Browse the repository at this point in the history
  • Loading branch information
kzangeli committed Sep 24, 2023
1 parent c38fbe2 commit d83bcc6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/lib/orionld/legacyDriver/legacyGetEntities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ bool legacyGetEntities(void)
QueryContextRequest mongoRequest;
QueryContextResponse mongoResponse;

LM_T(39, ("Getting entities on tenant '%s'", orionldState.tenantP->tenant));

if ((id == NULL) && (idPattern == NULL) && (type == NULL) && ((geometry == NULL) || (*geometry == 0)) && (attrs == NULL) && (q == NULL) && (local == false))
{
orionldError(OrionldBadRequestData,
Expand Down
2 changes: 2 additions & 0 deletions src/lib/orionld/legacyDriver/legacyGetEntity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,8 @@ bool legacyGetEntity(void)
KjNode* regArray = NULL;
char* eId = orionldState.wildcard[0];

LM_T(39, ("Retreiving entity '%s' from tenant '%s'", eId, orionldState.tenantP->tenant));

//
// Make sure the ID (eId) is a valid URI
//
Expand Down
2 changes: 2 additions & 0 deletions src/lib/orionld/legacyDriver/legacyPostEntities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ bool legacyPostEntities(void)
return false;
}

LM_T(39, ("Creating an entity '%s' of type '%s' on tenant '%s'", entityId, entityType, orionldState.tenantP->tenant));

//
// NOTE
// payloadParseAndExtractSpecialFields() from orionldMhdConnectionTreat() decouples the entity id and type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ GET entity with keyValues

--SHELL-INIT--
dbInit CB
orionldStart CB -t 0-255
orionldStart CB

--SHELL--

Expand Down

0 comments on commit d83bcc6

Please sign in to comment.