Revision: 189
http://cs-webapplibs.svn.sourceforge.net/cs-webapplibs/?rev=189&view=rev
Author: crazedsanity
Date: 2011-01-06 00:59:29 +0000 (Thu, 06 Jan 2011)
Log Message:
-----------
Add default log details.
/cs_webdblogger.class.php:
* log_by_class():
-- set default details to avoid running into unnecessary exceptions.
Modified Paths:
--------------
trunk/0.4/cs_webdblogger.class.php
Modified: trunk/0.4/cs_webdblogger.class.php
===================================================================
--- trunk/0.4/cs_webdblogger.class.php 2010-10-07 19:08:10 UTC (rev 188)
+++ trunk/0.4/cs_webdblogger.class.php 2011-01-06 00:59:29 UTC (rev 189)
@@ -287,6 +287,9 @@
*/
public function log_by_class($details, $className="error", $uid=NULL, array $logAttribs=NULL) {
+ if(is_null($details) || !strlen($details)) {
+ $details = "(". __METHOD__ .": no details given)";
+ }
if($this->suspendLogging === true) {
$this->pendingLogs[] = func_get_args();
$retval = count($this->pendingLogs) -1;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|