Skip to content

Commit

Permalink
Reduce log messages (#1395)
Browse files Browse the repository at this point in the history
When we don't do anything, there is little point logging it :)
  • Loading branch information
pkevan authored Oct 15, 2024
1 parent 7510e47 commit 2bcdaac
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions public_html/wp-content/plugins/camptix/camptix.php
Original file line number Diff line number Diff line change
Expand Up @@ -7114,8 +7114,10 @@ function review_timeout_payments() {
if ( $current_loop++ >= $max_loops )
break;
}

$this->log( sprintf( 'Reviewed timeout payments and set %d attendees to timeout status.', $processed ) );
// Only log action message if we did something.
if ( $processed > 0 ) {
$this->log( sprintf( 'Reviewed timeout payments and set %d attendees to timeout status.', $processed ) );
}
}

/**
Expand Down

0 comments on commit 2bcdaac

Please sign in to comment.