Definition at line 1530 of file feeserver.c.
References checkLogLevel(), checkReplicatedLogMessage(), dis_update_service, message, time, and type.
Referenced by ack_service(), allocateMemory(), command_handler(), createHeader(), createMemoryNode(), dim_dummy_exit_handler(), dim_error_msg_handler(), fee_exit_handler(), freeMemory(), getDeadband(), getIssueTimeout(), getLogLevel(), getUpdateRate(), initialize(), leaveCommandHandler(), marshallHeader(), monitorIntValues(), monitorValues(), runLogWatchDog(), setDeadband(), setFeeProperty(), setIssueTimeout(), setLogLevel(), setUpdateRate(), start(), startMonitorThread(), threadIssue(), triggerRestart(), unlockIssueMutex(), updateFeeServer(), and updateFeeService().
1533 int originLength = 0;
1538 if (state == COLLECTING) {
1543 status = pthread_mutex_lock(&
log_mut);
1548 printf(
"Lock log mutex error: %d\n", status);
1555 status = pthread_mutex_unlock(&
log_mut);
1560 printf(
"Unlock log mutex error: %d\n", status);
1569 (MSG_DESCRIPTION_SIZE - 1)) == 0)) {
1573 status = pthread_mutex_unlock(&
log_mut);
1578 printf(
"Unlock log mutex error: %d\n", status);
1594 if (description != 0) {
1596 descLength = ((strlen(description) >= MSG_DESCRIPTION_SIZE)
1597 ? (MSG_DESCRIPTION_SIZE - 1) : strlen(description));
1609 memcpy(
message.detector, LOCAL_DETECTOR, MSG_DETECTOR_SIZE);
1621 if (description != 0) {
1623 strncpy(
message.description, description, descLength);
1625 message.description[descLength] = 0;
1627 strcpy(
message.description,
"No description specified.");
1631 now = localtime(&timeVal);
1632 message.date[strftime(
message.date, MSG_DATE_SIZE,
"%Y-%m-%d %H:%M:%S",
1642 status = pthread_mutex_unlock(&
log_mut);
1647 printf(
"Unlock log mutex error: %d\n", status);
static MessageStruct message
bool checkLogLevel(int event)
static int serverNameLength
bool checkReplicatedLogMessage()
static pthread_mutex_t log_mut
#define dis_update_service
Warning because the service this data corrsponds to might have been last updated longer ago than Local time
static unsigned short replicatedMsgCount
static bool logWatchDogRunning
static MessageStruct lastMessage
static unsigned int messageServiceID