Example #1
0
 protected function isAggregate($aggregate)
 {
     if ($aggregate && $this->_debugbar->hasCollector('messages') && $this->_debugbar->shouldCollect('messages')) {
         return true;
     }
     return false;
 }
Example #2
0
 protected function logInternal($message, $type, $time, $context)
 {
     if ($this->_debugbar->hasCollector('log') && $this->_debugbar->shouldCollect('log')) {
         // Phalcon\Logger\Adapter::log方法调用logInternal时传入的时间精确到秒,精确度太低,因此此处提高精确度
         $this->_debugbar->getCollector('log')->add($message, $type, microtime(true), $context);
     }
 }