mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-23 14:00:56 +01:00
Delete some junko garbage
Summary: We haven't needed this for like three years, so we probably won't ever need it. It's in history if we do. Test Plan: thought long and hard Reviewers: btrahan, chad Reviewed By: chad Subscribers: epriestley Differential Revision: https://secure.phabricator.com/D9311
This commit is contained in:
parent
1daa0aa36e
commit
33aa395806
1 changed files with 0 additions and 55 deletions
|
@ -99,58 +99,3 @@ final class DarkConsoleErrorLogPlugin extends DarkConsolePlugin {
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
$data = $this->getData();
|
|
||||||
if (!$data) {
|
|
||||||
return
|
|
||||||
<x:frag>
|
|
||||||
<div class="mu">No errors.</div>
|
|
||||||
</x:frag>;
|
|
||||||
}
|
|
||||||
|
|
||||||
$markup = <table class="LConsoleErrors" />;
|
|
||||||
$alt = false;
|
|
||||||
foreach ($data as $error) {
|
|
||||||
$row = <tr class={$alt ? 'alt' : null} />;
|
|
||||||
|
|
||||||
$text = $error['error'];
|
|
||||||
$text = preg_replace('/\(in .* on line \d+\)$/', '', trim($text));
|
|
||||||
|
|
||||||
$trace = $error['trace'];
|
|
||||||
$trace = explode("\n", $trace);
|
|
||||||
if (!$trace) {
|
|
||||||
$trace = array('unknown@0@unknown');
|
|
||||||
}
|
|
||||||
|
|
||||||
foreach ($trace as $idx => $traceline) {
|
|
||||||
list($file, $line, $where) = array_merge(
|
|
||||||
explode('@', $traceline),
|
|
||||||
array('?', '?', '?'));
|
|
||||||
if ($where == 'DarkConsole->addError' ||
|
|
||||||
$where == 'debug_rlog') {
|
|
||||||
unset($trace[$idx]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
$row->appendChild(<th rowspan={count($trace)}>{$text}</th>);
|
|
||||||
|
|
||||||
foreach ($trace as $traceline) {
|
|
||||||
list($file, $line, $where) = array_merge(
|
|
||||||
explode('@', $traceline),
|
|
||||||
array('?', '?', '?'));
|
|
||||||
$row->appendChild(<td>{$file}:{$line}</td>);
|
|
||||||
$row->appendChild(<td>{$where}()</td>);
|
|
||||||
$markup->appendChild($row);
|
|
||||||
$row = <tr class={$alt ? 'alt' : null} />;
|
|
||||||
}
|
|
||||||
|
|
||||||
$alt = !$alt;
|
|
||||||
}
|
|
||||||
|
|
||||||
return
|
|
||||||
<x:frag>
|
|
||||||
<h1>Errors</h1>
|
|
||||||
<div class="LConsoleErrors">{$markup}</div>
|
|
||||||
</x:frag>;
|
|
||||||
*/
|
|
||||||
|
|
Loading…
Reference in a new issue