Changeset 9765 for sites/trunk/wordpress.org/public_html/wp-content/plugins/official-wordpress-events/meetup/class-api-client.php
- Timestamp:
- 04/22/2020 11:03:28 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/official-wordpress-events/meetup/class-api-client.php
r9107 r9765 147 147 $wait = min( $retry_after * $attempt_count, 30 ); 148 148 149 self::cli_message( " \nRequest failed $attempt_count times. Pausing for $wait seconds before retrying." );149 self::cli_message( "Request failed $attempt_count times. Pausing for $wait seconds before retrying." ); 150 150 151 151 sleep( $wait ); … … 158 158 159 159 if ( $attempt_count === $max_attempts && ( 200 !== $response_code || is_wp_error( $response ) ) ) { 160 self::cli_message( " \nRequest failed $attempt_count times. Giving up." );160 self::cli_message( "Request failed $attempt_count times. Giving up." ); 161 161 } 162 162 … … 282 282 protected static function cli_message( $message ) { 283 283 if ( 'cli' === php_sapi_name() ) { 284 echo $message;284 echo "\n$message"; 285 285 } 286 286 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)