Commit 86883de7 by 孙龙

init

parent ee2c8d64
Showing with 4 additions and 0 deletions
...@@ -14,6 +14,9 @@ class AddEveryMysql{ ...@@ -14,6 +14,9 @@ class AddEveryMysql{
} }
/**
* @return bool
*/
public function listen(){ public function listen(){
try{ try{
if(!isset($this->config['enabled']) || !$this->config['enabled']) return false; if(!isset($this->config['enabled']) || !$this->config['enabled']) return false;
...@@ -31,6 +34,7 @@ class AddEveryMysql{ ...@@ -31,6 +34,7 @@ class AddEveryMysql{
$tmp = str_replace("\\","",$tmp); $tmp = str_replace("\\","",$tmp);
\Log::info("host {$querys['urls']['host']} url:{$querys['urls']['path']} method:".$querys['urls']['method']." [queryTime:{$query->time}ms]".$tmp."\n\n\t"); \Log::info("host {$querys['urls']['host']} url:{$querys['urls']['path']} method:".$querys['urls']['method']." [queryTime:{$query->time}ms]".$tmp."\n\n\t");
// $arr->add("123"); // $arr->add("123");
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment