mirror of
https://github.com/openvk/chandler.git
synced 2025-01-22 07:14:13 +03:00
Enable silent error logging
This commit is contained in:
parent
eaba4a25de
commit
f58407575d
3 changed files with 4 additions and 1 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -19,3 +19,6 @@
|
||||||
/htdocs/*
|
/htdocs/*
|
||||||
!/htdocs/.htaccess
|
!/htdocs/.htaccess
|
||||||
!/htdocs/index.php
|
!/htdocs/index.php
|
||||||
|
|
||||||
|
/logs/*
|
||||||
|
!/logs/.gitkeep
|
||||||
|
|
|
@ -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
0
logs/.gitkeep
Normal file
Loading…
Reference in a new issue