diff --git a/lib/log/TingClientDrupalWatchDogLogger.php b/lib/log/TingClientDrupalWatchDogLogger.php index 8e2ff26..9f10a2d 100644 --- a/lib/log/TingClientDrupalWatchDogLogger.php +++ b/lib/log/TingClientDrupalWatchDogLogger.php @@ -6,10 +6,23 @@ * @see http://api.drupal.org/api/function/watchdog/ */ class TingClientDrupalWatchDogLogger extends TingClientLogger { + + /** + * Log a message to the Drupal watchdog. + * + * @param string $message + * Message to log. + * @param string $severity + * Severity to log with. + */ public function doLog($message, $severity) { - watchdog('ting client', htmlspecialchars($message, ENT_QUOTES, 'UTF-8', FALSE), array(), - constant('WATCHDOG_' . $severity), - 'http://' . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]); + watchdog( + 'ting client', + '
@message
', + ['@message' => $message], + constant('WATCHDOG_' . $severity), + 'http://' . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"] + ); } -} +}