Closed Bug 793147 Opened 12 years ago Closed 12 years ago

TBPL needs a toggle-able debug mode print/echo based on Timer.php

Categories

(Tree Management Graveyard :: TBPL, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: emorley, Assigned: emorley)

References

Details

Attachments

(1 file)

For bug 790889 / bug 718632, I've had to scatter things like this around: > if (PHP_SAPI === 'cli') > echo "starting ".$log['type']." log generation\n"; It would be a lot nicer if we could adapt Timer.php to provide both timing and general debug info output, without the need to use a conditional every time. (ie as suggested in bug 718632 comment 53)
Attached patch Patch v1 (deleted) — Splinter Review
Attachment #663374 - Flags: review?(arpad.borsos)
Blocks: 793159
Comment on attachment 663374 [details] [diff] [review] Patch v1 Review of attachment 663374 [details] [diff] [review]: ----------------------------------------------------------------- ::: php/inc/Timer.php @@ +6,3 @@ > static $enabled = false; > + private $startTime; > + public static function output($str) { Good thing making it static :-)
Attachment #663374 - Flags: review?(arpad.borsos) → review+
Not yet in production, but will be soon and I'm trying to clean up my assigned bugs searches.
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Depends on: 794538
Product: Webtools → Tree Management
Product: Tree Management → Tree Management Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: