Attempt at fixing Sentry error logging

This commit is contained in:
Albert Santoni 2015-06-16 14:35:29 -04:00
parent 709b9bbeec
commit 90bd0a1ab4
3 changed files with 9 additions and 5 deletions

View file

@ -83,7 +83,11 @@ class Logging {
{
$logger = self::getLogger();
$logger->err(self::getLinePrefix(true) . self::toString($p_msg));
SentryLogger::getInstance()->captureError(self::toString($p_msg));
//Escape the % symbols in any of our errors because Sentry chokes (vsprint formatting error).
$msg = self::toString($p_msg);
$msg = str_replace("%", "%%", $msg);
SentryLogger::getInstance()->captureError($msg);
}
public static function debug($p_msg)