Enable silent error logging

This commit is contained in:
Jill Stingray 2020-06-30 07:29:11 +00:00
parent eaba4a25de
commit f58407575d
3 changed files with 4 additions and 1 deletions

3
.gitignore vendored
View File

@ -19,3 +19,6 @@
/htdocs/* /htdocs/*
!/htdocs/.htaccess !/htdocs/.htaccess
!/htdocs/index.php !/htdocs/index.php
/logs/*
!/logs/.gitkeep

View File

@ -23,7 +23,7 @@ class Bootstrap
*/ */
private function registerDebugger(): void private function registerDebugger(): void
{ {
Debugger::enable(CHANDLER_ROOT_CONF["debug"] ? Debugger::DEVELOPMENT : Debugger::PRODUCTION); Debugger::enable((CHANDLER_ROOT_CONF["debug"] ? Debugger::DEVELOPMENT : Debugger::PRODUCTION), __DIR__ . "/../logs");
Debugger::getBar()->addPanel(new Chandler\Debug\DatabasePanel); Debugger::getBar()->addPanel(new Chandler\Debug\DatabasePanel);
} }

0
logs/.gitkeep Normal file
View File