Skip to content

Commit 12f5c6c

Browse files
committed
show where the SQL are executed if some filtering was apply to controllers and models
* this helps in big projects to check the querys
1 parent defc863 commit 12f5c6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/Profiler.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ protected function _compile_queries()
215215
$val = str_replace($bold, '<b>'. $bold .'</b>', $val);
216216
}
217217

218-
$output[][$time] = $controler.':'.$db->database.' ' . $val; // there's a filter CI plugin, so must show controler name, tho mention on wich controler was exec the query if some filter was applied
218+
$output[][$time] = '/*('.$controler.',Scheme:'.$db->database.')*/ ' . $val; // it show in comment for SQL copy where was executed the query to get more easy in big projects where is the issue, if some filters where apply
219219
}
220220

221221
}

0 commit comments

Comments
 (0)