Drop redundant malformed-feed log in Fetch RSS node
The failed() result already surfaces the error; the Log::warning was duplicate noise. Removes the now-unused Log import.
This commit is contained in:
parent
478cad9f27
commit
e77ba84f5d
1 changed files with 1 additions and 8 deletions
|
|
@ -13,7 +13,6 @@
|
|||
use App\Services\Brand\SafeHttpFetcher;
|
||||
use Carbon\CarbonImmutable;
|
||||
use Illuminate\Support\Facades\Http;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
use RuntimeException;
|
||||
use SimpleXMLElement;
|
||||
use Throwable;
|
||||
|
|
@ -66,13 +65,7 @@ public function __invoke(AutomationRun $run, array $config): NodeRunResult
|
|||
|
||||
try {
|
||||
$xml = new SimpleXMLElement($response->body());
|
||||
} catch (Throwable $e) {
|
||||
Log::warning('Fetch RSS node: malformed feed', [
|
||||
'run_id' => $run->id,
|
||||
'feed_url' => $feedUrl,
|
||||
'error' => $e->getMessage(),
|
||||
]);
|
||||
|
||||
} catch (Throwable) {
|
||||
return NodeRunResult::failed(__('automations.errors.fetch_rss_malformed'));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue