From 26146d06f54f7d80f1ad982c4b7ceabd76f6c41a Mon Sep 17 00:00:00 2001 From: thinkphp Date: Fri, 2 Sep 2016 17:04:33 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=80=E5=8C=96=E6=97=A5=E5=BF=97=E4=BF=A1?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Cache.php | 2 +- library/think/Db.php | 4 +--- library/think/Log.php | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/library/think/Cache.php b/library/think/Cache.php index ecfd2cf3..a5ac0b32 100644 --- a/library/think/Cache.php +++ b/library/think/Cache.php @@ -44,7 +44,7 @@ class Cache $class = false !== strpos($type, '\\') ? $type : '\\think\\cache\\driver\\' . ucwords($type); // 记录初始化信息 - App::$debug && Log::record('[ CACHE ] INIT ' . $type . ':' . var_export($options, true), 'info'); + App::$debug && Log::record('[ CACHE ] INIT ' . $type, 'info'); if (true === $name) { return new $class($options); } else { diff --git a/library/think/Db.php b/library/think/Db.php index 874e63fa..e9a698d5 100644 --- a/library/think/Db.php +++ b/library/think/Db.php @@ -76,9 +76,7 @@ class Db $class = false !== strpos($options['type'], '\\') ? $options['type'] : '\\think\\db\\connector\\' . ucwords($options['type']); // 记录初始化信息 if (App::$debug) { - $info = $options; - $info['password'] = '*****'; - Log::record('[ DB ] INIT ' . $options['type'] . ':' . var_export($info, true), 'info'); + Log::record('[ DB ] INIT ' . $options['type'], 'info'); } if (true === $name) { return new $class($options); diff --git a/library/think/Log.php b/library/think/Log.php index 135f6547..5fd1631a 100644 --- a/library/think/Log.php +++ b/library/think/Log.php @@ -61,7 +61,7 @@ class Log throw new ClassNotFoundException('class not exists:' . $class, $class); } // 记录初始化信息 - App::$debug && Log::record('[ LOG ] INIT ' . $type . ': ' . var_export($config, true), 'info'); + App::$debug && Log::record('[ LOG ] INIT ' . $type, 'info'); } /**