mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-09 18:30:16 +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 ( my $e = $EVAL_ERROR ) {
|
||||||
if ( ++$n_errors > 100 ) {
|
if ( ++$n_errors > 10 ) {
|
||||||
warn "$n_errors consecutive errors, no more error "
|
warn "$n_errors consecutive errors, no more error "
|
||||||
. "messages will be printed until log entries "
|
. "messages will be printed until log entries "
|
||||||
. "are sent successfully again.\n";
|
. "are sent successfully again.\n";
|
||||||
|
@@ -183,7 +183,7 @@ sub start_online_logging {
|
|||||||
};
|
};
|
||||||
if ( my $e = $EVAL_ERROR ) {
|
if ( my $e = $EVAL_ERROR ) {
|
||||||
# Safegaurd: don't spam the agent log file with errors.
|
# 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 "
|
warn "$n_errors consecutive errors, no more error "
|
||||||
. "messages will be printed until log entries "
|
. "messages will be printed until log entries "
|
||||||
. "are sent successfully again.\n";
|
. "are sent successfully again.\n";
|
||||||
|
Reference in New Issue
Block a user