summaryrefslogtreecommitdiffstats
path: root/system/core/Log.php
diff options
context:
space:
mode:
authorvlakoff <vlakoff@gmail.com>2013-05-07 07:49:23 +0200
committervlakoff <vlakoff@gmail.com>2013-05-07 07:51:59 +0200
commitd0c30ab416b0f6bc7fdc9ea70f6fd5e07ac13884 (patch)
tree2e7a675a4123e031a0524547c7d833a8437256d0 /system/core/Log.php
parent206d951e3da15bf9c69b3b8860c8bd274fb82b6f (diff)
Logging functions: level parameter is not optional
This parameter cannot be optional, as the following parameter is mandatory. Also completed the corresponding documentation.
Diffstat (limited to 'system/core/Log.php')
-rw-r--r--system/core/Log.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/core/Log.php b/system/core/Log.php
index a84d3dc22..e4d72b544 100644
--- a/system/core/Log.php
+++ b/system/core/Log.php
@@ -138,12 +138,12 @@ class CI_Log {
*
* Generally this function will be called using the global log_message() function
*
- * @param string the error level
+ * @param string the error level: 'error', 'debug' or 'info'
* @param string the error message
* @param bool whether the error is a native PHP error
* @return bool
*/
- public function write_log($level = 'error', $msg, $php_error = FALSE)
+ public function write_log($level, $msg, $php_error = FALSE)
{
if ($this->_enabled === FALSE)
{