Skip to content

Commit

Permalink
Remove check on disabled logging
Browse files Browse the repository at this point in the history
This check would stop the logging, but a better solution would
be for the reconfiguration to shut down and/or restart the thread
as appropriate.
  • Loading branch information
simon-ess committed May 31, 2024
1 parent cf4f443 commit e183395
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions caPutLogApp/caPutJsonLogTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -403,11 +403,6 @@ caPutJsonLogStatus CaPutJsonLogTask::buildJsonMsg(const VALUE *pold_value, const
unsigned char interBuffer[interBufferSize];
yajl_gen_status status;

// Dont log if logging is disabled
if (this->config == caPutJsonLogNone) {
return caPutJsonLogSuccess;
}

// Dont log duplicate values if configured so
if (this->config == caPutJsonLogOnChange && !burst) {
if (this->compareValue(&pLogData->old_value, &pLogData->new_value.value, pLogData->type))
Expand Down

0 comments on commit e183395

Please sign in to comment.