diff --git a/framework/CHANGELOG.md b/framework/CHANGELOG.md index a2e51dbe74..098dfa9cbb 100644 --- a/framework/CHANGELOG.md +++ b/framework/CHANGELOG.md @@ -7,6 +7,7 @@ Yii Framework 2 Change Log - Enh #17382: Added `\yii\validators\DateValidator::$strictDateFormat` to enable strict validation (alexkart) - Bug #16394: Fixed issues in `migrate/create` when specifying default values with colons and adding multiple columns (alexkart) - Bug #17341: Re-added fix for error from yii.activeForm.js in strict mode (mikehaertl) +- Enh #17396: Added 'invoked by controller' to the debug log message when `\yii\base\Action` is used (alexkart) 2.0.21 June 18, 2019 diff --git a/framework/base/Action.php b/framework/base/Action.php index 9c9eaa45dc..8f163fbd14 100644 --- a/framework/base/Action.php +++ b/framework/base/Action.php @@ -86,7 +86,7 @@ class Action extends Component throw new InvalidConfigException(get_class($this) . ' must define a "run()" method.'); } $args = $this->controller->bindActionParams($this, $params); - Yii::debug('Running action: ' . get_class($this) . '::run()', __METHOD__); + Yii::debug('Running action: ' . get_class($this) . '::run()' . ', invoked by ' . get_class($this->controller), __METHOD__); if (Yii::$app->requestedParams === null) { Yii::$app->requestedParams = $args; }