diff options
author | Andrey Andreev <narf@devilix.net> | 2013-05-17 13:56:33 +0200 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2013-05-17 13:56:33 +0200 |
commit | f755cfdab966842dc2d402470efa0f35486800a9 (patch) | |
tree | 15ef43e05bddb2bdbc09668bc86b9e6c20f5529d /system/core/Common.php | |
parent | e418e1e5b9b0f6726c953b6111b85adfe6043e9b (diff) | |
parent | d0c30ab416b0f6bc7fdc9ea70f6fd5e07ac13884 (diff) |
Merge pull request #2440 from vlakoff/develop
Logging functions: level parameter is not optional
Diffstat (limited to 'system/core/Common.php')
-rw-r--r-- | system/core/Common.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/system/core/Common.php b/system/core/Common.php index b4f0c388e..cad340f33 100644 --- a/system/core/Common.php +++ b/system/core/Common.php @@ -424,12 +424,12 @@ if ( ! function_exists('log_message')) * We use this as a simple mechanism to access the logging * class and send messages to be logged. * - * @param string - * @param string - * @param bool + * @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 void */ - function log_message($level = 'error', $message, $php_error = FALSE) + function log_message($level, $message, $php_error = FALSE) { static $_log, $_log_threshold; |