My watchdog is filled with messages about locale.module parsing javascript files. This message is printed so many times that it makes the watchdog a pretty useless tool for analysing problems with the site as there may only be 3 or 4 valid watchdog message in a page full of these messages from locale. The problem was recently reported on the forum here http://drupal.org/node/402268 and I brought it up in IRC and was advised to open a bug report.

Is this really intended behaviour? Or is this just a stray watchdog call that was forgotten to be removed? If it really is a genuine message, then there needs to be a way to turn down the logging level so that the watchdog can become useful to anyone who cares about things other than local.module pasing javascript files.

Comments

kruser’s picture

Version: 6.10 » 6.12

I'm getting these notices too for every javascript file...
Parsed JavaScript file sites/all/modules/memcache/memcache_admin/memcache.js.

Any idea how to get rid of them?

mrfelton’s picture

yeah, comment out the line in local.module - line 508. Yes, It's a core hack, but there's no other way as far as I know.

kruser’s picture

Good to know. Thanks!

pvhee’s picture

Still no solution for this problem?

ShannonK’s picture

StatusFileSize
new19.17 KB
new45.58 KB

I'm getting a bunch of these messages too. What do they mean? Is this an error?

malukalu’s picture

subscribing

mrfelton’s picture

Version: 6.12 » 6.14
Status: Active » Needs review
StatusFileSize
new595 bytes

Here is a patch that removes the annoying message. Can we get this commited into core? The watchdog is next to useless when it's full of these messages.

lias’s picture

Subscribing to track fix.

geek-merlin’s picture

subscribing

greggles’s picture

This seems reasonable to me as well. I found this issue from a thread that claimed that Google Analytics caused this to be parsed on every page, but the site where I have this problem doesn't use Google Analytics. Perhaps there are other modules that cause it to happen more often than necessary, but I'm not sure watchdogging all the time is the solution.

abqaria’s picture

subscribe

mlncn’s picture

Version: 6.14 » 6.x-dev
Status: Needs review » Reviewed & tested by the community

Unless someone can explain why we care when a JS file is parsed, or more likely why locale shouldn't be parsing JavaScript files in the first place, can we call this patch ready to go? We've tested it.

benjamin, agaric

dave reid’s picture

Version: 6.x-dev » 7.x-dev
Status: Reviewed & tested by the community » Needs work

Yeah, this message is unnecessary. Let's fix in D7 first.

Ela’s picture

subscribe

HTF’s picture

subscribe

greggles’s picture

Status: Needs work » Needs review
StatusFileSize
new1.68 KB

Ok, same thing for D7.

dave reid’s picture

Status: Needs review » Reviewed & tested by the community

Yay!

dries’s picture

Version: 7.x-dev » 6.x-dev

Committed to CVS HEAD. Moving to D6.

greggles’s picture

Now the patch from #7 should be good - http://drupal.org/node/409676#comment-2082670

Sten-dupe’s picture

Sorry i am confused is the patch for D6 on #7 ? it says its failed and has not been retested. Or is it greggles post on #16 confused as he put D7

Can someone clarify for me,

Thx

greggles’s picture

The patch in #7 applies to Drupal 6. The failure message is about testing it on Drupal 7, where we expect it to fail.

gábor hojtsy’s picture

Status: Reviewed & tested by the community » Fixed

Theoretically, this should not happen often, but only when caches are cleared. I'd advise you look at why are your caches cleared this often.

Committed this patch to Drupal 6 too.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.