diff options
author | ramon <ramongomez@us.es> | 2017-02-08 10:50:23 +0000 |
---|---|---|
committer | ramon <ramongomez@us.es> | 2017-02-08 10:50:23 +0000 |
commit | 1ab1b31df17de5c1ebf80826c33299a1bc517151 (patch) | |
tree | 007ed304ba2c0b77bf754f78ffd3393a61a0c03a /admin/WebConsole/rest/index.php | |
parent | a26527db3d1288c340fc503beca4dbde52d65131 (diff) |
#708: Reorganizar funciones comunes y registrar errores en fichero {{{error.log}}} de Apache.
git-svn-id: https://opengnsys.es/svn/branches/version1.1@5178 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'admin/WebConsole/rest/index.php')
-rw-r--r-- | admin/WebConsole/rest/index.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/admin/WebConsole/rest/index.php b/admin/WebConsole/rest/index.php index 00a13571..2b632fff 100644 --- a/admin/WebConsole/rest/index.php +++ b/admin/WebConsole/rest/index.php @@ -32,10 +32,12 @@ if (!$cmd) die("Access Error"); // Install Slim application (development mode). -//$app = new \Slim\Slim(array('mode' => 'production', 'debug' => false)); +//$app = new \Slim\Slim(array('mode' => 'production', ... ); $app = new \Slim\Slim(array( 'mode' => 'development', - 'debug' => true)); + 'log.enabled' => true, + 'log.level' => \Slim\Log::ERROR, + 'debug' => false)); $app->setName('opengnsys'); // Global variables. |