Migrate addon, trigger, and widget logging functions to Debug class

This commit is contained in:
Kijin Sung 2016-02-16 11:01:45 +09:00
parent 0947bafa66
commit 516479cf20
7 changed files with 188 additions and 147 deletions

View file

@ -122,12 +122,13 @@ class DisplayHandler extends Handler
self::$response_size = $this->content_size = strlen($output);
ModuleHandler::triggerCall('display', 'after', $output);
// debugOutput output
// Output the page content and debug data.
$debug = $this->getDebugInfo($output);
print $output;
print $debug;
flushSlowlog();
// Flush the slow query/trigger/widget log.
ModuleHandler::triggerCall('common.flushDebugInfo', 'after', new stdClass);
}
/**