Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenaka Moorthi <benaka.moorthi@gmail.com>2013-09-26 11:57:41 +0400
committerBenaka Moorthi <benaka.moorthi@gmail.com>2013-09-26 11:57:41 +0400
commitb4c557e87de22cd49e041898707f7622ef57e825 (patch)
tree069f83c801a128d4a3ff897f61b2e9b95dbff84b /core/Error.php
parent30002d635b7569d11c9e14675a69d5169c514064 (diff)
Finished more.
Diffstat (limited to 'core/Error.php')
-rw-r--r--core/Error.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/core/Error.php b/core/Error.php
index d31ff36de8..684d951859 100644
--- a/core/Error.php
+++ b/core/Error.php
@@ -96,7 +96,7 @@ class Error
public static function formatFileAndDBLogMessage(&$message, $level, $pluginName, $datetime, $log)
{
if ($message instanceof Error) {
- $message = $message->$errfile . '(' . $message->errline . '): ' . $message->getErrNoString()
+ $message = $message->errfile . '(' . $message->errline . '): ' . $message->getErrNoString()
. ' - ' . $message->errstr . "\n" . $message->backtrace;
$message = $log->formatMessage($level, $pluginName, $datetime, $message);
@@ -153,8 +153,6 @@ class Error
return;
}
- $plugin = 'unknown';
-
$backtrace = '';
$bt = @debug_backtrace();
if ($bt !== null && isset($bt[0])) {
@@ -167,12 +165,10 @@ class Error
. (isset($debug['file']) ? $debug['file'] : '') . ':'
. (isset($debug['line']) ? $debug['line'] : '') . ']' . "\n";
}
-
- $plugin = Plugin::getPluginNameFromBacktrace($bt);
}
$error = new Error($errno, $errstr, $errfile, $errline, $backtrace);
- Log::e($plugin, $error);
+ Log::error($error);
switch ($errno) {
case E_ERROR: