From: Louis Jeckel Date: Thu, 3 Dec 2020 11:52:21 +0000 (+0100) Subject: log X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=cab8fc18c23dfb99ea6bad7d4eadb3ae9c22673b;p=psq.git log --- diff --git a/app/Invokables/GetPageTitleFromUrl.php b/app/Invokables/GetPageTitleFromUrl.php index 33aff91..1bb8b35 100644 --- a/app/Invokables/GetPageTitleFromUrl.php +++ b/app/Invokables/GetPageTitleFromUrl.php @@ -10,6 +10,7 @@ class GetPageTitleFromUrl { + \Log("get title $url"); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); @@ -38,7 +39,9 @@ class GetPageTitleFromUrl return $title[1] ?? $url; } - return mb_strimwidth($url, 0, 200, '...'); + $title = mb_strimwidth($url, 0, 200, '...'); + \Log::debug("Title $title" ); + return $title; } } diff --git a/app/Pdftk.php b/app/Pdftk.php index a2adcce..44f7afe 100644 --- a/app/Pdftk.php +++ b/app/Pdftk.php @@ -62,6 +62,7 @@ class Pdftk public static function replaceLinks($file, callable $callback) { + \Log::debug("Replace links"); $uncompressed = sys_get_temp_dir().'/'.uniqid('pdftk', false); self::uncompress($file, $uncompressed);