Changeset 1749 in subversion


Ignore:
Timestamp:
Sep 6, 2008 11:51:22 AM (5 years ago)
Author:
thomasb
Message:

Add request URI to error log data

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/include/bugs.inc

    r1683 r1749  
    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.