(Fixes issue 1493)

This commit is contained in:
qiang.xue
2010-08-24 19:26:17 +00:00
parent 412b35d7fa
commit 7a096cdc4c
2 changed files with 8 additions and 0 deletions

View File

@@ -130,6 +130,7 @@ EOD;
if(($_path_=@getenv('YIIC_SHELL_COMMAND_PATH'))!==false)
$_runner_->addCommands($_path_);
$_commands_=$_runner_->commands;
$log=Yii::app()->log;
while(($_line_=$this->readline("\n>> "))!==false)
{
@@ -153,6 +154,12 @@ EOD;
else
echo $e;
}
if($log)
{
Yii::getLogger()->flush();
$log->processLogs(new CEvent($this));
}
}
}
}