Zen Cart Logo
Forums / Upgrading to 1.5.x / Beware of debug logger?? True or False??

Beware of debug logger?? True or False??

Locked

Views: 2,106

Results 1 to 14 of 14
This thread is locked. New replies are disabled.
16 Feb 2012, 4:17 PM
#1
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Beware of debug logger?? True or False??

Not sure if this is the right place to post this, but I wanted to get opinions on this from the Zen Cart experts..

I ran across this blog post: Beware of zencart debug logger!

Which states:

In the recent versions of Zencart (I think starting from 1.3.9h) you will find that includes/extra_configures/enable_error_logging.php exists by default. This file will turn on the debug switch and will put the logs into your /cache folder. The problem is that it also puts lots of WARNINGS and such inside this, and ZC does generate lots of those. Within a short amount of time (depending on the number of visitors you have and number of warnings etc), this folder will be flooded with log files and will more than likely lead to many performance issues and such.
I recommend that you rename this to enable_error_logging.php.bak and only rename it backs when you want to check for an issue.Any truth to this?? Has this been the experience of others??

16 Feb 2012, 4:22 PM
#2
grneyes avatar

grneyes

New Zenner

Join Date:
Apr 2006
Posts:
42
Plugin Contributions:
0

Re: Beware of debug logger?? True or False??

Yes! It's happening on everyone of my clients sites that use1.3.9h. On my own site it had over 10000 debug errors in the cache in just a few days.

16 Feb 2012, 4:26 PM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Beware of debug logger?? True or False??

You should not have any debug logs unless you have a problem to fix ...

If you have a problem they need to be addressed until there are no more debug logs generated ...

Should you get too many to open the /cache then rename it /cache_full and make a new /cache with proper write permissions and check the error messages and correct the issues ...

Once fixed, delete the debug logs and the /cache to be clear of all debug logs if all is working correctly ...

Trying to turn off the debug logs so they do not fill up the /cache is fool hardy as you are not fixing anything and you need to fix whatever is not working so that you do not get any debug logs ...

16 Feb 2012, 4:38 PM
#4
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Beware of debug logger?? True or False??

Ajeh:

You should not have any debug logs unless you have a problem to fix ...

If you have a problem they need to be addressed until there are no more debug logs generated ...

Should you get too many to open the /cache then rename it /cache_full and make a new /cache with proper write permissions and check the error messages and correct the issues ...

Once fixed, delete the debug logs and the /cache to be clear of all debug logs if all is working correctly ...

**Trying to turn off the debug logs so they do not fill up the /cache is fool hardy as you are not fixing anything and you need to fix whatever is not working so that you do not get any debug logs ...**This was my thought as well when I read this.. Thanks for your insight..

16 Feb 2012, 4:42 PM
#5
grneyes avatar

grneyes

New Zenner

Join Date:
Apr 2006
Posts:
42
Plugin Contributions:
0

Re: Beware of debug logger?? True or False??

I would fix it if I could figure out the problem but just loading my index page should not cause a send mail error but yet it does every single time it's loaded.

16 Feb 2012, 4:46 PM
#6
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Beware of debug logger?? True or False??

grneyes:

I would fix it if I could figure out the problem but just loading my index page should not cause a send mail error but yet it does every single time it's loaded.Honestly you should start a new post about this to try and sort out the issues you are having (you might start with posting some DETAILS of the exact error messages you are getting)

The intent of this topic wasn't to troubleshoot errors in the error log.. I wanted to get an opinion about the advice given in this article.

16 Feb 2012, 4:48 PM
#7
grneyes avatar

grneyes

New Zenner

Join Date:
Apr 2006
Posts:
42
Plugin Contributions:
0

Re: Beware of debug logger?? True or False??

DivaVocals:

Honestly you should start a new post about this to try and sort out the issues you are having (you might start with posting some DETAILS of the exact error messages you are getting)

The intent of this topic wasn't to troubleshoot errors in the error log.. I wanted to get an opinion about the advice given in this article.

I wasn't asking anyone to troubleshoot anything. No reason to be rude about it.

16 Feb 2012, 5:29 PM
#8
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Beware of debug logger?? True or False??

grneyes:

I wasn't asking anyone to troubleshoot anything. **No reason to be rude about it.**Rude eh??:laugh: You read WAY MORE into my post and assigned sentiments to it I did NOT convey (or even mean).. Your accusation is rude... I merely suggested that IF you were seeking troubleshooting assistance (which your post seemed to feel like) that you should start a fresh post to get some help from the community.. 'tis all..

16 Feb 2012, 5:58 PM
#9
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Beware of debug logger?? True or False??

DivaVocals:

I ran across this blog post: blog.rubikintegration.com/2012/02/04/beware-of-zencart-debug-logger

Which states:

In the recent versions of Zencart (I think starting from 1.3.9h) you will find that includes/extra_configures/enable_error_logging.php exists by default. This file will turn on the debug switch and will put the logs into your /cache folder. The problem is that it also puts lots of WARNINGS and such inside this, and ZC does generate lots of those. Within a short amount of time (depending on the number of visitors you have and number of warnings etc), this folder will be flooded with log files and will more than likely lead to many performance issues and such.
I recommend that you rename this to enable_error_logging.php.bak and only rename it backs when you want to check for an issue.Any truth to this?? Has this been the experience of others??
There's only a small bit of truth in those statements: yes the site's performance will slow down if there is a huge number of debug logs.

BUT there will ONLY be debug logs if there are actual errors on the site. A default clean install of the current version of Zen Cart (ie: v1.5.0 as of today) does NOT trigger any debug logs.
So, any problems that are showing in the logs are a result of sloppy coding on the part of whoever has been customizing the site or its addons.

I suppose this merely exposes that the folks at rubikintegration have a lot of code problems :O

16 Feb 2012, 6:00 PM
#10
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Beware of debug logger?? True or False??

grneyes:

I would fix it if I could figure out the problem but just loading my index page should not cause a send mail error but yet it does every single time it's loaded.

DivaVocals:

Honestly you should start a new post about this to try and sort out the issues you are having (you might start with posting some DETAILS of the exact error messages you are getting)

The intent of this topic wasn't to troubleshoot errors in the error log.. I wanted to get an opinion about the advice given in this article.

And I would agree with DivaVocals: if you are reading this thread and have a lot of debug logs, it is best for you to start a separate thread to discuss your specific problems, including details from the most recent log entries. Be sure to review the FAQs for possible answers to your error messages before posting, as it may save you some time.

16 Feb 2012, 6:11 PM
#11
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Beware of debug logger?? True or False??

DrByte:

There's only a small bit of truth in those statements: yes the site's performance will slow down if there is a huge number of debug logs.

BUT there will ONLY be debug logs if there are actual errors on the site. A default clean install of the current version of Zen Cart (ie: v1.5.0 as of today) does NOT trigger any debug logs.
So, any problems that are showing in the logs are a result of sloppy coding on the part of whoever has been customizing the site or its addons.

I suppose this merely exposes that the folks at rubikintegration have a lot of code problems :O
Thanks I was hoping you or Ajeh would weigh in here.. My gut feeling was that if there are error logs, then there are issue that need to be resolved.. PERIOD.. resolve the issues, not more errors.. I don't see the error log as being the BIG issue this article proclaims it is, but I just wanted to get some additional feedback on this. My initial reaction was I felt that the article tells only PART of the story, and without the right context it will lead folks to some incorrect conclusions being drawn.

16 Feb 2012, 6:26 PM
#12
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Beware of debug logger?? True or False??

That's correct. The author of that article has told only a small part of the story, which has resulted in fearmongering instead of actually being helpful.
Typical behavior of the Press, not of someone who's actually trying to be helpful.

Most unfortunate really. If they wanted to be truly value-add to the ZC community they would give guidance on how to resolve the problems being reported in the logs.

Besides, if the site is encountering errors or warnings, that's gonna slow the server down PERIOD. Merely hiding the problems DOES NOT speed things up. That's like slapping another bandage on top of one that's covering an infection, instead of cleaning out the infection in the first place.

Pity.

16 Feb 2012, 6:49 PM
#13
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Beware of debug logger?? True or False??

DrByte:

That's correct. The author of that article has told only a small part of the story, which has resulted in fearmongering instead of actually being helpful.
Typical behavior of the Press, not of someone who's actually trying to be helpful.

Most unfortunate really. If they wanted to be truly value-add to the ZC community they would give guidance on how to resolve the problems being reported in the logs.Thanks for confirming my own conclusions Dr Byte.. The fearmongering description rings very true for me..:yes:

DrByte:

Besides, if the site is encountering errors or warnings, that's gonna slow the server down PERIOD. Merely hiding the problems DOES NOT speed things up. That's like slapping another bandage on top of one that's covering an infection, instead of cleaning out the infection in the first place.

Pity.
Or as my mom would say putting a bandaid on a bullet wound..

19 Sep 2012, 2:26 PM
#14
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Beware of debug logger?? True or False??

FYI, as of v1.5.1, the "debug logs" are relocated to the /logs/ folder instead of the /cache/ folder, which will nullify the concerns in that blog post.