Closed (fixed)
Project:
Project Issue File Review
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
4 Dec 2008 at 03:47 UTC
Updated:
23 Dec 2008 at 04:12 UTC
Jump to comment: Most recent file
Comments
Comment #1
boombatower commentedShould the debug setting be a configuration option or a constant. For easier debug it may be useful to have it as a setting?
I'll work on adding debug statements.
Comment #2
boombatower commentedHere is an initial stab.
Let me know if you were looking for more detailed.
Comment #3
boombatower commentedWhite-space removed.
Comment #4
aclight commentedI'd also recommend that you add something in pifr_review_send() so that it's easy to see from the slave what happened with testing of each patch.
I've added the following code to the version running on my slave, just after the first if {} block.
Comment #5
aclight commentedAttached patch adds watchdog information on the message that was returned to the PIFR server.
Comment #6
boombatower commentedShouldn't that be a pifr_debug() statement? Perhaps there are other areas to convert to pifr_debug()
Comment #7
aclight commentedActually, I think that the watchdog statement in pifr_review_send() should always be executed, regardless of whether or not debugging mode is enabled. Given that it's one line per test run, I don't see that this line will clutter up the watchdog log to a great degree.
Comment #8
aclight commentedAlthough the severity of the watchdog call shouldn't be WATCHDOG_ERROR as it is in my patch above.
Comment #9
aclight commentedDidn't mean to change status.
Comment #10
boombatower commentedRemove the WATCHDOG_ERROR, would like hunmonk to approve as he requested.
Comment #11
hunmonk commentedthis is a good first attempt. the only question i have is: should PIFR_DEBUG be set to TRUE by default? i think it should be set to FALSE by default -- i believe this would be in line with most other debugging approaches i've seen. other than that it's ready to go.
going forward, i think it would be helpful to get more of these in other key places. we have a _lot_ of trouble in the HEAD install code, so having a bunch of these peppered throughout would be good. also, in some spots it might be nice to return some data to look at (i'm specifically thinking at the end of the HEAD installation, we could return a formatted $d testing object).
Comment #12
boombatower commentedRight I agree with you on DEBUG default...must have missed it.
Committed initial patch.
Comment #13
aclight commentedIf we're going to disable debugging by default, I'd like to see this be an actual drupal setting and not a constant definition in the module's code. That way we can turn on and off debugging without patching the code locally, which I think will potentially lead to additional confusion, and also makes rolling patches for pifr slightly more difficult as it's more likely that debug = TRUE will creep into pifr code via an errant commit at some point.
Comment #14
boombatower commentedYea, the idea was debated in this issue. #344628: Add setting for to replace PIFR_DEBUG constant