由于我已经将我的Dream城DSP从2.0.2升级到2.1.1-2,一些配置的参数似乎被忽略了!
DF_LOG_LEVEL就是其中之一,即使我对其进行了更改,该值仍停留在警告状态,即在config/df.php中定义为默认值。
下面是我的.env文件的一部分:
##------------------------------------------------------------------------------
## DreamFactory Settings
##------------------------------------------------------------------------------
## LOG Level. This is hierarchical and goes in the following order.
## DEBUG -> INFO -> NOTICE -> WARNING -> ERROR -> CRITICAL -> ALERT -> EMERGENCY
## If you set log level to WARNING then all WARNING, ERROR, CRITICAL, ALERT, and EMERGENCY
## will be logged. Setting log level to DEBUG will log everything. Default is WARNING.
DF_LOG_LEVEL=DEBUG
(我已经检查了我的.env文件中没有关于LOG_LEVEL的其他行)
以下是有关LOG_LEVEL的config/df.php部分:(默认值为警告)
'version' => '2.1.1',
// General API version number, 1.x was earlier product and may be supported by most services
'api_version' => '2.0',
// Name of this DreamFactory instance. Defaults to server name.
'instance_name' => env('DF_INSTANCE_NAME', gethostname()),
// Log level
'log_level' => env('DF_LOG_LEVEL', 'WARNING'),
当我将DF_LOG_LEVEL更改为.env文件中的其他值时,即使在重新启动服务器之后,日志文件和管理部分Config/System中也没有任何更改:
DreamFactory实例 管理应用程序版本: 2.1.5 DreamFactory版本: 2.1.1 系统数据库: mysql 安装路径:/opt/df2 2/app/梦想/htdocs/ 日志路径: /opt/df2/apps/dreamfactory/htdocs/storage/logs/ 日志模式:单一 日志级别:警告
我注意到其他参数(如DF_ALLOW_FOREVER_SESSIONS=true )也存在同样的问题,这些参数也不再有效!
有什么帮助或建议吗?
发布于 2016-06-09 11:41:37
在对.env文件进行DreamFactory更改后,建议发出以下命令,以便从.env文件(从htdocs文件夹或DF2安装目录)读取更改:
php artisan config:clear
php artisan cache:clear
https://stackoverflow.com/questions/36417669
复制相似问题