Changeset 982


Ignore:
Timestamp:
01/24/10 13:40:32 (3 years ago)
Author:
nick_ramsay
Message:

[Branches] Changes to Debug so that errors get logged in the cache only when Debug mode is on. At other times, they are logged wherever PHP usually logs them.

Location:
branches/1.0/libs
Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.0/libs/Initialize.php

    r963 r982  
    8383        ini_set('display_errors', 1); // Gets disabled later in checkDebug() 
    8484        error_reporting(E_ALL); 
    85          
    86         // log errors to a file - the custom error handler below wasn't catching fatal errors, so using PHP's one 
    87         ini_set('error_log', CACHE . 'debug_logs/error_log.txt'); 
    88         /* 
    89         require_once(EXTENSIONS . 'SWCMS/swcms_error_handler.php'); // error_handler class 
    90         $error_handler = new swcms_error_handler(0, 0, 1, NULL, CACHE . 'debug_logs/error_log.txt'); 
    91         set_error_handler(array($error_handler, "handler")); 
    92         */ 
    9385    } 
    9486 
     
    232224            require_once(FUNCTIONS . 'funcs.times.php'); 
    233225            timer_start(); 
    234             ini_set('display_errors', 1); // show errors  
     226            ini_set('display_errors', 1); // show errors 
     227            ini_set('error_log', CACHE . 'debug_logs/error_log.txt'); 
    235228            return true; 
    236229        } else { 
Note: See TracChangeset for help on using the changeset viewer.