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

This commit is contained in:
Ad5001 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
1 changed files with 1 additions and 1 deletions

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;