Reduce recurring log messages in sm-scheduler.log
sm-schedule.log contains a recurring log message "no scheduling changes required." The amount of those log entries is huge and in a large environment, it adds a significant burden for the monitoring elements, while providing no apparent value. This commit fixes the issue. Change-Id: Ia03bc7161d5b6a8059fd8daba5e40450711f2830 Signed-off-by: Jessica Castelino <jessica.castelino@windriver.com> Closes-Bug: 1929618
This commit is contained in:
parent
d34896248a
commit
9fefc6ef53
|
@ -46,6 +46,7 @@ typedef SmDebugThreadMsgT SmDebugSchedLogSetT[SCHED_LOGS_MAX];
|
|||
|
||||
static int _sched_log_set = 0;
|
||||
static int _sched_log_num = 0;
|
||||
static bool _print_sched_log = true;
|
||||
static SmDebugSchedLogSetT _sched_logs[2];
|
||||
|
||||
// ****************************************************************************
|
||||
|
@ -231,9 +232,13 @@ void sm_debug_sched_log_done( char* domain )
|
|||
|
||||
send( _client_fd, msg, sizeof(SmDebugThreadMsgLogT), 0 );
|
||||
}
|
||||
} else {
|
||||
sm_debug_log( SM_DEBUG_SCHED_LOG, "%s: no scheduling changes "
|
||||
"required.", domain );
|
||||
_print_sched_log = true;
|
||||
}
|
||||
else {
|
||||
if (_print_sched_log)
|
||||
sm_debug_log( SM_DEBUG_SCHED_LOG, "%s: no scheduling changes "
|
||||
"required.", domain );
|
||||
_print_sched_log = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue