Commit 516cd7a2 authored by Jack'lul's avatar Jack'lul

Make botan.io integration use debug TelegramLog in case of failure

parent d21b23e1
...@@ -155,7 +155,7 @@ class Botan ...@@ -155,7 +155,7 @@ class Botan
$responseData = json_decode($response, true); $responseData = json_decode($response, true);
if ($responseData['status'] !== 'accepted') { if ($responseData['status'] !== 'accepted') {
error_log('Botan.io API replied with error: ' . $response); TelegramLog::debug('Botan.io API replied with error: ' . $response);
} }
return $responseData; return $responseData;
...@@ -204,9 +204,7 @@ class Botan ...@@ -204,9 +204,7 @@ class Botan
if (!filter_var($response, FILTER_VALIDATE_URL) === false) { if (!filter_var($response, FILTER_VALIDATE_URL) === false) {
BotanDB::insertShortUrl($user_id, $url, $response); BotanDB::insertShortUrl($user_id, $url, $response);
} else { } else {
// @TODO: Add telegram log TelegramLog::debug('Botan.io API replied with error: ' . $response);
error_log('Botan.io API replied with error: ' . $response);
return $url; return $url;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment