mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-08 10:48:12 +00:00
Change the error spam threshold from 100 to 10.
This commit is contained in:
@@ -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";
|
||||
|
@@ -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";
|
||||
|
Reference in New Issue
Block a user