|
@@ -14,7 +14,7 @@ discard block |
|
|
block discarded – undo |
|
14
|
14
|
|
|
15
|
15
|
class ExternHttpErrorLogic |
|
16
|
16
|
{ |
|
17
|
|
- public const LOG_REQUEST_ERROR = __DIR__ . '/../../Application/resources/external_request_error.log'; |
|
|
17
|
+ public const LOG_REQUEST_ERROR = __DIR__.'/../../Application/resources/external_request_error.log'; |
|
18
|
18
|
protected const LOOSE = true; |
|
19
|
19
|
|
|
20
|
20
|
public function __construct( |
|
@@ -49,7 +49,7 @@ discard block |
|
|
block discarded – undo |
|
49
|
49
|
return $url; |
|
50
|
50
|
} |
|
51
|
51
|
if (preg_match('#401 Unauthorized#i', $errorMessage)) { |
|
52
|
|
- $this->log->notice('401 Unauthorized : skip ' . $url); |
|
|
52
|
+ $this->log->notice('401 Unauthorized : skip '.$url); |
|
53
|
53
|
|
|
54
|
54
|
return $url; |
|
55
|
55
|
} |
|
@@ -73,7 +73,7 @@ discard block |
|
|
block discarded – undo |
|
73
|
73
|
//"cURL error 28: Connection timed out after 20005 milliseconds (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) |
|
74
|
74
|
//"cURL error 97: Can't complete SOCKS5 connection to www.ewppp.org. (4) (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) |
|
75
|
75
|
// "cURL error 97: Can't complete SOCKS5 connection to www.dzhand.net |
|
76
|
|
- $this->log->notice('erreur non gérée sur extractWebData: "' . $errorMessage . "\" URL: ".$url); |
|
|
76
|
+ $this->log->notice('erreur non gérée sur extractWebData: "'.$errorMessage."\" URL: ".$url); |
|
77
|
77
|
|
|
78
|
78
|
//file_put_contents(self::LOG_REQUEST_ERROR, $this->domain."\n", FILE_APPEND); |
|
79
|
79
|
|
|
@@ -82,7 +82,7 @@ discard block |
|
|
block discarded – undo |
|
82
|
82
|
|
|
83
|
83
|
protected function log403(string $url): void |
|
84
|
84
|
{ |
|
85
|
|
- $this->log->warning('403 Forbidden : ' . $url); |
|
|
85
|
+ $this->log->warning('403 Forbidden : '.$url); |
|
86
|
86
|
//file_put_contents(self::LOG_REQUEST_ERROR, '403 Forbidden : ' . $url . "\n", FILE_APPEND); |
|
87
|
87
|
} |
|
88
|
88
|
} |
|
89
|
89
|
\ No newline at end of file |