------------------------------------------------------------
revno: 1127
committer: Roger Martin <[email protected]>
branch nick: aikiframework
timestamp: Tue 2012-03-06 20:35:19 +0100
message:
  correction when log_dir,log_file,log_level are not set
modified:
  bootstrap.php


--
lp:aikiframework
https://code.launchpad.net/~aikiframework-devel/aikiframework/trunk

Your team Aiki Framework Developers is subscribed to branch lp:aikiframework.
To unsubscribe from this branch go to 
https://code.launchpad.net/~aikiframework-devel/aikiframework/trunk/+edit-subscription
=== modified file 'bootstrap.php'
--- bootstrap.php	2012-02-22 17:02:29 +0000
+++ bootstrap.php	2012-03-06 19:35:19 +0000
@@ -88,10 +88,11 @@
 /** Instantiate a new log for global use
  * @global Log $log */
 
-$log = new Log($config["log_dir"],
-		$config["log_file"],
-		$config["log_level"],
-		$AIKI_ROOT_DIR);
+$log = new Log(
+	(isset( $config["log_dir"])  ? $config["log_dir"]   :"" ),
+	(isset( $config["log_file"]) ? $config["log_file"]  :"" ),
+	(isset( $config["log_level"])? $config["log_level"] :"NONE" ),
+	$AIKI_ROOT_DIR);
 
 /* the following lines are usage examples:
  $log->message("test message which defaults to debug level");

_______________________________________________
Mailing list: https://launchpad.net/~aikiframework-devel
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~aikiframework-devel
More help   : https://help.launchpad.net/ListHelp

Reply via email to