Attempt at fixing Sentry error logging
This commit is contained in:
parent
709b9bbeec
commit
90bd0a1ab4
3 changed files with 9 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue