Skip to content

Commit e3afb6b

Browse files
committed
Merge pull request #6 from jacobemerick/fix/error-logging-references
Fix/error logging references
2 parents ea978ff + 668a1ce commit e3afb6b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Shutterstock/Presto/Presto.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,16 +319,16 @@ public function executeRequest($handle, array $options = array())
319319
));
320320
$header = '';
321321

322+
self::logProfiling($info);
322323
$retries++;
323324
if ($retries < $this->retries_max) {
324-
self::logProfiling($info);
325325
if ($this->log_retries) {
326326
$this->logError("retrying request - ({$info['errorno']}) {$info['error']} :: {$info['url']}");
327327
}
328328
usleep($this->retry_delay);
329329
return $this->makeRequest($info['url'], $options);
330330
} else {
331-
$this->logError("max retries ({$retries}) reached - ({$info['errorno']}) {$cinfo['error']} :: {$cinfo['url']}");
331+
$this->logError("max retries ({$retries}) reached - ({$info['errorno']}) {$info['error']} :: {$info['url']}");
332332
}
333333
} else {
334334
$info['is_success'] = true;

0 commit comments

Comments
 (0)