Making WordPress.org

Changeset 11153


Ignore:
Timestamp:
07/27/2021 06:44:12 PM (23 months ago)
Author:
iandunn
Message:

Official WP Events: Clarify debugging output.

The initial assignment to $this->debug was removed because it's always overwritten in the constructor.

Location:
sites/trunk/wordpress.org/public_html/wp-content/plugins/official-wordpress-events
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/official-wordpress-events/meetup/class-meetup-client.php

    r9958 r11153  
    3333     * @var bool If true, the client will fetch fewer results, for faster debugging.
    3434     */
    35     protected $debug = false;
     35    protected $debug;
    3636
    3737    /**
     
    165165            }
    166166
    167             if ( $this->debug ) {
     167            if ( $request_url && $this->debug ) {
     168                if ( 'cli' === php_sapi_name() ) {
     169                    echo "\nDebug mode: Skipping future paginated requests to $request_url";
     170                }
     171
    168172                break;
    169173            }
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/official-wordpress-events/official-wordpress-events.php

    r10417 r11153  
    304304        $events = $this->parse_wordcamp_events( $response );
    305305
    306         $this->log( sprintf( 'returning %d events', count( $events ) ) );
     306        $this->log( sprintf( 'returning %d WordCamp events', count( $events ) ) );
    307307
    308308        return $events;
     
    567567            return $events;
    568568        }
     569
     570        $this->log( sprintf( 'received %d meetup groups', count( $groups ) ) );
    569571
    570572        $yesterday    = date( 'c', strtotime( '-1 day' ) );
     
    588590        $events = $this->parse_meetup_events( $meetups );
    589591
    590         $this->log( sprintf( 'returning %d events', count( $events ) ) );
     592        $this->log( sprintf( 'returning %d meetup events', count( $events ) ) );
    591593
    592594        return $events;
Note: See TracChangeset for help on using the changeset viewer.