Skip to content

Commit

Permalink
add timestamp to debugger output
Browse files Browse the repository at this point in the history
  • Loading branch information
zegenie committed May 19, 2012
1 parent 22b903a commit 34ce6b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion caspar/core/Caspar.class.php
Expand Up @@ -1017,7 +1017,7 @@ public static function loadConfiguration()
self::$_debug_mode = true;
self::getResponse()->addStylesheet('/css/debugger.css');
self::getResponse()->addStylesheet('/css/cspdebugger.css');
self::autoloadNamespace('al13_debug\\util', CASPAR_LIB_PATH);
self::autoloadNamespace('al13_debug\\util', CASPAR_LIB_PATH . 'al13_debug' . DS . 'util' . DS);
require CASPAR_LIB_PATH . 'al13_debug' . DS . 'bootstrap.php';
self::$_debugger = new Debugger();
} else {
Expand Down
3 changes: 3 additions & 0 deletions caspar/templates/debugger-row.php
Expand Up @@ -14,6 +14,9 @@

<div class="csp-dbg-entry-row" id="csp-dbg-row-<?php echo $cspdbgrow; ?>">
<?php if ($csp_debugger->isAjaxRequest()): ?>AJAX Request<?php else: ?>This page<?php endif; ?> - <?php echo $csp_debugger->getRouting()->getCurrentRouteName(); ?>
<span class="csp-dbg-entry-timestamp">
&nbsp;&nbsp;<?php echo date('H:i:s (d-m-Y)'); ?>
</span>
<div class="csp-dbg-entry-open" id="csp-dbg-row-<?php echo $cspdbgrow; ?>-open" onClick="cspexpandEntry(<?php echo $cspdbgrow; ?>);">
&#x25BC;
</div>
Expand Down

0 comments on commit 34ce6b8

Please sign in to comment.