diff --git a/lib/converter.php b/lib/converter.php index 84c11d4f..8bb2f346 100644 --- a/lib/converter.php +++ b/lib/converter.php @@ -22,7 +22,7 @@ class Converter { } if (empty($output)){ - \OCP\Util::writeLog('Documents', 'Empty conversion output', \OCP\Util::WARN); + Helper::warnLog('Empty conversion output'); throw new \RuntimeException('Empty conversion output'); } return $output; @@ -84,7 +84,7 @@ class Converter { curl_setopt_array($ch, $options); $content = curl_exec($ch); if (curl_errno($ch)){ - \OCP\Util::writeLog('Documents', 'cURL error' . curl_errno($ch) . ':' . curl_error($ch), \OCP\Util::DEBUG); + Helper::debugLog('cURL error' . curl_errno($ch) . ':' . curl_error($ch)); } curl_close($ch); diff --git a/lib/helper.php b/lib/helper.php index 460a7f0a..dbda481c 100644 --- a/lib/helper.php +++ b/lib/helper.php @@ -158,8 +158,8 @@ class Helper { } if (empty($cmd)){ - \OCP\Util::writeLog('Documents', 'Pure configuration issue. Missing open office binary that is mandatory for conversion.', \OCP\Util::WARN); - \OCP\Util::writeLog('Documents', 'If openoffice or libreoffice is already installed please specify the path to it using preview_libreoffice_path config. Refer to admin manual for details.', \OCP\Util::WARN); + Helper::warnLog('Pure configuration issue. Missing open office binary that is mandatory for conversion.'); + Helper::debugLog('If openoffice or libreoffice is already installed please specify the path to it using preview_libreoffice_path config. Refer to admin manual for details.'); throw new \RuntimeException('Missing open office binary that is mandatory for conversion.'); }