[ghelda-devel] [37] Add a display logging function.

[ Thread Index | Date Index | More lists.tuxfamily.org/ghelda-devel Archives ]


Revision: 37
Author:   odyx
Date:     2009-04-29 23:24:35 +0200 (Wed, 29 Apr 2009)

Log Message:
-----------
Add a display logging function.

Modified Paths:
--------------
    trunk/inc/g_functions.php


Modified: trunk/inc/g_functions.php
===================================================================
--- trunk/inc/g_functions.php	2009-04-29 21:24:33 UTC (rev 36)
+++ trunk/inc/g_functions.php	2009-04-29 21:24:35 UTC (rev 37)
@@ -58,9 +58,13 @@
 }
 
 // log == inv(gol)
+// Inverse of log - allow simple logging (aka debugging)
 function gol($text,$var) {
 	trigger_error($text.var_export($var,true),G_E_LOG);
 }
+function gold($text,$var) {
+	trigger_error($text.var_export($var,true),G_E_DISPLAY);
+}
 
 
 function concat_to_each(&$item, $key, $prepostfix) {


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/