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 (#4501)
  • Loading branch information
fgalan authored Feb 7, 2024
1 parent 2aa814d commit 8d8d954
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGES_NEXT_RELEASE
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
- Fix: changed the default value of `-dbTimeout` to 0 to resolve conflict with `-dbURI` (#4496)
- Fix: changed the default value of `-dbTimeout` to 0 to resolve conflict with `-dbURI` (#4496)
- 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 8d8d954

Please sign in to comment.