Commit f66e28c4 by Alexander Makarov

Fixes #4199: added missing category to logging calls

parent b5e1959b
...@@ -77,9 +77,9 @@ class RateLimiter extends ActionFilter ...@@ -77,9 +77,9 @@ class RateLimiter extends ActionFilter
$action $action
); );
} elseif ($user) { } elseif ($user) {
Yii::info('Rate limit skipped: "user" does not implement RateLimitInterface.'); Yii::info('Rate limit skipped: "user" does not implement RateLimitInterface.', __METHOD__);
} else { } else {
Yii::info('Rate limit skipped: user not logged in.'); Yii::info('Rate limit skipped: user not logged in.', __METHOD__);
} }
return true; return true;
} }
......
...@@ -113,7 +113,7 @@ class I18N extends Component ...@@ -113,7 +113,7 @@ class I18N extends Component
$result = $formatter->format($message, $params, $language); $result = $formatter->format($message, $params, $language);
if ($result === false) { if ($result === false) {
$errorMessage = $formatter->getErrorMessage(); $errorMessage = $formatter->getErrorMessage();
Yii::warning("Formatting message for language '$language' failed with error: $errorMessage. The message being formatted was: $message."); Yii::warning("Formatting message for language '$language' failed with error: $errorMessage. The message being formatted was: $message.", __METHOD__);
return $message; return $message;
} else { } else {
......
...@@ -94,7 +94,7 @@ class AssetConverter extends Component implements AssetConverterInterface ...@@ -94,7 +94,7 @@ class AssetConverter extends Component implements AssetConverterInterface
} elseif (YII_DEBUG) { } elseif (YII_DEBUG) {
throw new Exception("AssetConverter command '$command' failed with exit code $status:\nSTDOUT:\n$stdout\nSTDERR:\n$stderr"); throw new Exception("AssetConverter command '$command' failed with exit code $status:\nSTDOUT:\n$stdout\nSTDERR:\n$stderr");
} else { } else {
Yii::error("AssetConverter command '$command' failed with exit code $status:\nSTDOUT:\n$stdout\nSTDERR:\n$stderr"); Yii::error("AssetConverter command '$command' failed with exit code $status:\nSTDOUT:\n$stdout\nSTDERR:\n$stderr", __METHOD__);
} }
return $status === 0; return $status === 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment