Merge pull request #4201 from dizews/patch-2

change default facility of SyslogTarget
This commit is contained in:
octicon-git-branch(16/)
octicon-tag(16/)
Alexander Makarov
2014-07-04 14:20:01 +03:00
gitea-unlock(16/)
octicon-diff(16/tw-mr-1) 2 changed files with 2 additions and 1 deletions

1
framework/CHANGELOG.md
View File

@@ -168,6 +168,7 @@ Yii Framework 2 Change Log
- Chg #3989: The default value for `yii\log\FileTarget::$rotateByCopy` now defaults to true to work on windows by default (cebe)
- Chg #4071: `mail` component renamed to `mailer`, `yii\log\EmailTarget::$mail` renamed to `yii\log\EmailTarget::$mailer` (samdark)
- Chg #4147: `BaseMailer::compose()` will not overwrite the `message` parameter if it is explicitly provided (qiangxue)
- Chg #4201: change default value of `SyslogTarget::facility` from LOG_SYSLOG to LOG_USER (dizews)
- Chg: Replaced `clearAll()` and `clearAllAssignments()` in `yii\rbac\ManagerInterface` with `removeAll()`, `removeAllRoles()`, `removeAllPermissions()`, `removeAllRules()` and `removeAllAssignments()` (qiangxue)
- Chg: Added `$user` as the first parameter of `yii\rbac\Rule::execute()` (qiangxue)
- Chg: `yii\grid\DataColumn::getDataCellValue()` visibility is now `public` to allow accessing the value from a GridView directly (cebe)

2
framework/log/SyslogTarget.php
View File

@@ -26,7 +26,7 @@ class SyslogTarget extends Target
/**
* @var integer syslog facility.
*/
public $facility = LOG_SYSLOG;
public $facility = LOG_USER;
/**
* @var array syslog levels