Next time, i'm gonna make a get logger for each class

This commit is contained in:
Adsooi 2017-03-09 07:10:19 +01:00
parent f86a9437c3
commit 8333f3bad7
No known key found for this signature in database
GPG key ID: F05C5A0D59BC40DD

View file

@ -87,7 +87,7 @@ class DataBase extends SQLite3 {
@return SQLite3Result|bool
*/
public function query($qry) {
$this->getLogger()->debug($qry);
Server::getInstance()->getPluginManager()->getPlugin("HideAndSeek")->getLogger()->debug($qry);
$res = parent::query($qry);
if($res instanceof \SQLite3Result) self::setNumRows($res);
return $res;