改进Log类的record方法

This commit is contained in:
thinkphp
2016-06-14 14:24:25 +08:00
parent c9155c016d
commit 15aeb6d7f4
5 changed files with 12 additions and 6 deletions

View File

@@ -80,9 +80,6 @@ class Log
*/
public static function record($msg, $type = 'log')
{
if (!is_string($msg)) {
$msg = var_export($msg, true);
}
self::$log[$type][] = $msg;
}
@@ -153,9 +150,6 @@ class Log
*/
public static function write($msg, $type = 'log')
{
if (!is_string($msg)) {
$msg = var_export($msg, true);
}
// 封装日志信息
$log[$type][] = $msg;