Added more YII_ENV constants.

This commit is contained in:
Qiang Xue
2013-07-31 07:18:59 -04:00
parent 5d9c23c67b
commit eda171e1be
7 changed files with 22 additions and 10 deletions

View File

@@ -150,7 +150,7 @@ class Logger extends Component
{
parent::init();
if ($this->traceLevel === null) {
$this->traceLevel = YII_ENV === 'dev' ? 3 : 0;
$this->traceLevel = YII_ENV_DEV ? 3 : 0;
}
foreach ($this->targets as $name => $target) {
if (!$target instanceof Target) {