Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Code Change to Stop Logging Notices

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #1  
Old 10-31-2016, 10:12 AM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default Code Change to Stop Logging Notices

Notices in X-Cart 4's var/log folder bloat the logs unnecessarily. I tried turning them off in the config.php, in .htaccess, and even at the entire server level, and x-cart kept logging them.

Drove me nuts.

The solution is as follows:

Open include/func/func.logging.php

FIND:

Code:
/** * Error handler */ function func_error_handler($errno, $errstr, $errfile, $errline) {

AFTER ADD:

Code:
// SD - Don't Log Notices if (in_array($errno, array(1, 3, 8, 9, 10))) return; // / SD - Don't Log Notices

You're welcome
Reply With Quote

The following 2 users thank Jon for this useful post:
cherie (10-31-2016), elmirage001 (10-31-2016)
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 12:54 PM.

   

 
X-Cart forums © 2001-2020