Changeset c5e2d8b in github


Ignore:
Timestamp:
Sep 6, 2008 11:51:22 AM (5 years ago)
Author:
thomascube <thomas@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
7f22f29
Parents:
94e4be5
Message:

Add request URI to error log data

File:
1 edited

Legend:

Unmodified
Added
Removed
  • program/include/bugs.inc

    rb77d0dd rc5e2d8b  
    6868{ 
    6969  global $CONFIG; 
    70   $program = $arg_arr['type']=='xpath' ? 'XPath' : strtoupper($arg_arr['type']); 
     70  $program = strtoupper($arg_arr['type']); 
    7171 
    7272  // write error to local log file 
    7373  if ($CONFIG['debug_level'] & 1) 
    7474  { 
    75     $log_entry = sprintf( 
    76       "[%s] %s Error: %s in %s on line %d\n", 
     75    $log_entry = sprintf("[%s] %s Error: %s in %s on line %d (%s %s)\n", 
    7776      date("d-M-Y H:i:s O", mktime()), 
    7877      $program, 
    7978      $arg_arr['message'], 
    8079      $arg_arr['file'], 
    81       $arg_arr['line']); 
    82                   
     80      $arg_arr['line'], 
     81      $_SERVER['REQUEST_METHOD'], 
     82      $_SERVER['REQUEST_URI']); 
     83       
    8384    if (empty($CONFIG['log_dir'])) 
    8485      $CONFIG['log_dir'] = INSTALL_PATH.'logs'; 
Note: See TracChangeset for help on using the changeset viewer.