mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-24 21:35:00 +00:00
Fix it again, again.
This commit is contained in:
@@ -4971,9 +4971,9 @@ sub start_online_logging {
|
||||
);
|
||||
};
|
||||
if ( my $e = $EVAL_ERROR ) {
|
||||
if ( ++$n_errors < 10 ) {
|
||||
if ( ++$n_errors <= 10 ) {
|
||||
warn "Error sending log entry to API: $e";
|
||||
if ( $n_errors >= 10 ) {
|
||||
if ( $n_errors == 10 ) {
|
||||
my $ts = ts(time, 1); # 1=UTC
|
||||
warn "$ts WARNING $n_errors consecutive errors, no more "
|
||||
. "error messages will be printed until log entries "
|
||||
|
@@ -183,9 +183,9 @@ sub start_online_logging {
|
||||
};
|
||||
if ( my $e = $EVAL_ERROR ) {
|
||||
# Safegaurd: don't spam the agent log file with errors.
|
||||
if ( ++$n_errors < 10 ) {
|
||||
if ( ++$n_errors <= 10 ) {
|
||||
warn "Error sending log entry to API: $e";
|
||||
if ( $n_errors >= 10 ) {
|
||||
if ( $n_errors == 10 ) {
|
||||
my $ts = ts(time, 1); # 1=UTC
|
||||
warn "$ts WARNING $n_errors consecutive errors, no more "
|
||||
. "error messages will be printed until log entries "
|
||||
|
Reference in New Issue
Block a user