From 1e69b034b1b3b495539c788fa6fa0cb376a54498 Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Fri, 14 Aug 2015 12:55:32 +0000 Subject: [PATCH] start : remove the NOTICE from the logs when we are in production git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2250 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- start.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/start.php b/start.php index 43ac50e..a68b1fc 100644 --- a/start.php +++ b/start.php @@ -35,10 +35,15 @@ if (defined ("DEVEL") && constant ("DEVEL") !== false) $logger->backtraceDisplay = true; $logger->logtype = "display|stderr"; } +else +{ + $logger->loglevelmin = LOG_WARNING; +} $logger->catchAll(); if (! isset ($route)) $route = new route (); +$route->debug = 0; // Catch all the uncatched exceptions set_exception_handler(array ($route, "error")); @@ -49,7 +54,7 @@ $authREST = $authentication->verifAuthREST (); if (defined ("APPNAME")) $authentication->appName = constant ("APPNAME"); $authentication->routes (); -$route->authenticationURL = "/authentication"; +$route->authenticationURL = "/authentication/"; // Selection of the language $language = new language ();