mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-03 07:04:07 +01:00
* [FIX] Fixed wrong behavior when analyzing an array from a request.
* [ADD] Added SQL logging when debug is enabled.
This commit is contained in:
@@ -32,6 +32,7 @@ use SP\Core\Context\ContextInterface;
|
||||
use SP\Core\Events\EventDispatcher;
|
||||
use SP\Http\Request;
|
||||
use SP\Providers\Log\DatabaseLogHandler;
|
||||
use SP\Providers\Log\FileLogHandler;
|
||||
use SP\Providers\Log\RemoteSyslogHandler;
|
||||
use SP\Providers\Log\SyslogHandler;
|
||||
use SP\Providers\Mail\MailHandler;
|
||||
@@ -128,7 +129,9 @@ abstract class ModuleBase
|
||||
|
||||
if ($this->configData->isLogEnabled()) {
|
||||
$eventDispatcher->attach($this->container->get(DatabaseLogHandler::class));
|
||||
// $eventDispatcher->attach($this->container->get(FileLogHandler::class));
|
||||
if (DEBUG) {
|
||||
$eventDispatcher->attach($this->container->get(FileLogHandler::class));
|
||||
}
|
||||
}
|
||||
|
||||
if ($this->configData->isMailEnabled()) {
|
||||
|
||||
Reference in New Issue
Block a user