Skip to content

Commit

Permalink
FIX wrong INFO startup log showing ORION_MONGO_TIMEOUT, ORION_IN_REQ_…
Browse files Browse the repository at this point in the history
…PAYLOAD_MAX_SIZE and ORION_OUT_REQ_MSG_MAX_SIZE env var values
  • Loading branch information
fgalan committed Feb 6, 2024
1 parent 9d7dcf8 commit 6de8de1
Show file tree
Hide file tree
Showing 2 changed files with 6 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: wrong INFO startup log showing ORION_MONGO_TIMEOUT, ORION_IN_REQ_PAYLOAD_MAX_SIZE and ORION_OUT_REQ_MSG_MAX_SIZE env var values (#4496)
6 changes: 5 additions & 1 deletion src/app/contextBroker/contextBroker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -979,13 +979,17 @@ static void logEnvVars(void)
{
LM_I(("env var ORION_%s (%s): %d", aP->envName, aP->option, *((int*) aP->varP)));
}
else if (aP->type == PaULong)
{
LM_I(("env var ORION_%s (%s): %d", aP->envName, aP->option, *((unsigned long*) aP->varP)));
}
else if (aP->type == PaDouble)
{
LM_I(("env var ORION_%s (%s): %d", aP->envName, aP->option, *((double*) aP->varP)));
}
else
{
LM_I(("env var ORION_%s (%s): %d", aP->envName, aP->option));
LM_E(("cannot show env var ORION_%s (%s) due to unrecognized type: %d", aP->envName, aP->option, aP->type));
}
}
}
Expand Down

0 comments on commit 6de8de1

Please sign in to comment.