Change the error spam threshold from 100 to 10.

This commit is contained in:
Daniel Nichter
2013-06-16 22:54:07 -07:00
parent 9215fd5a02
commit 61bf5c5e24
2 changed files with 2 additions and 2 deletions

View File

@@ -4971,7 +4971,7 @@ sub start_online_logging {
);
};
if ( my $e = $EVAL_ERROR ) {
if ( ++$n_errors > 100 ) {
if ( ++$n_errors > 10 ) {
warn "$n_errors consecutive errors, no more error "
. "messages will be printed until log entries "
. "are sent successfully again.\n";

View File

@@ -183,7 +183,7 @@ sub start_online_logging {
};
if ( my $e = $EVAL_ERROR ) {
# Safegaurd: don't spam the agent log file with errors.
if ( ++$n_errors > 100 ) {
if ( ++$n_errors > 10 ) {
warn "$n_errors consecutive errors, no more error "
. "messages will be printed until log entries "
. "are sent successfully again.\n";