Changeset 4396 for sites/trunk/wordcamp.org/public_html/wp-content/plugins/camptix-badge-generator/includes/indesign-badges.php
- Timestamp:
- 11/21/2016 07:17:01 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/plugins/camptix-badge-generator/includes/indesign-badges.php
r4366 r4396 105 105 * image was successfully retrieved. 106 106 * 107 * @throws \Exception when the HTTP failed even after multiple attempts 107 * @todo If have any problems with downloads failing permenantly, can try doing `str_replace()` on `$request_url` 108 * in order to change the `size` parameter to `512`. 109 * 110 * @todo Update this to use wcorg_redundant_remote_get() instead, for DRYness 111 * 112 * @throws \Exception when the HTTP request fails 108 113 */ 109 114 function download_single_gravatar( $request_url ) { … … 131 136 132 137 if ( $attempt_count < 3 ) { 133 Logger\log( 'request_failed_temporarily', compact( ' attendee', 'request_url', 'response', 'attempt_count', 'retry_after' ) );138 Logger\log( 'request_failed_temporarily', compact( 'request_url', 'response', 'attempt_count', 'retry_after' ) ); 134 139 sleep( $retry_after ); 135 140 } else { 136 Logger\log( 'request_failed_permenantly', compact( ' attendee', 'request_url', 'response' ) );141 Logger\log( 'request_failed_permenantly', compact( 'request_url', 'response' ) ); 137 142 throw new \Exception( __( "Couldn't download all Gravatars.", 'wordcamporg' ) ); 138 143 }
Note: See TracChangeset
for help on using the changeset viewer.