mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-03 13:58:55 +08:00
Fix #16671: Logging in Connection::open() was not respecting Connection::$enableLogging
This commit is contained in:
@ -9,6 +9,7 @@ Yii Framework 2 Change Log
|
||||
- Bug #17434: Fix regular expression illegal character; Repeated fix for Internet Explorer 11 AJAX redirect bug in case of 301 and 302 response codes (`XMLHttpRequest: Network Error 0x800c0008`) (kamarton)
|
||||
- Bug #16855: Ignore console commands that have no actions (alexeevdv)
|
||||
- Enh #16826: `appendTimestamp` support was added to `View` methods `registerCssFile()` and `registerJsFile()` (onmotion)
|
||||
- Bug #16671: Logging in `Connection::open()` was not respecting `Connection::$enableLogging` (samdark)
|
||||
|
||||
2.0.26 September 03, 2019
|
||||
-------------------------
|
||||
|
||||
@ -613,7 +613,10 @@ class Connection extends Component
|
||||
$token = 'Opening DB connection: ' . $this->dsn;
|
||||
$enableProfiling = $this->enableProfiling;
|
||||
try {
|
||||
Yii::info($token, __METHOD__);
|
||||
if ($this->enableLogging) {
|
||||
Yii::info($token, __METHOD__);
|
||||
}
|
||||
|
||||
if ($enableProfiling) {
|
||||
Yii::beginProfile($token, __METHOD__);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user