Log File empty but only on production

I forgotten to specify as ‘safe’ a new field I added to a table/model. So my app cannot update a record because unable to set an unsafe attribute. This is an “application” category error of severity “warning”.

In test, I got these errors populated, but in production no !

I already checked that runtime folder is writable and it is, also because other log files (for other categories) are rightly written in this directory.

This is the configuration for log routes, for both test and production envs.



			'routes'=> $environment["log_routes"],





            'class'         =>'CFileLogRoute',

            'levels'        =>'error, warning',

            'logFile'       => 'application.log',

            'categories'    => 'application',



Also, this is my production config

defined('YII_DEBUG') or define('YII_DEBUG', false);

defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',1);

But the test config is



    defined('YII_DEBUG') or define('YII_DEBUG', true);

    defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',2);

Please, can you suggest me some checks to debug why it’s not written my application.log file?

The warning message of the unsafe attribute comes from the CModel::onUnsafeAttribute() which logs the warning only in debug mode.


Thanks a lot.

Of course, some heads will fail because of lacking of testing