为什么 DreamFactory 2.1.1 LOG_LEVEL .env 参数被忽略?
Why DreamFactory 2.1.1 LOG_LEVEL .env parameter is ignored?
自从我将 Dreamfactory 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'),
当我将 .env 文件中的 DF_LOG_LEVEL 更改为其他值时,即使在重新启动服务器后,我的日志文件和管理部分中也没有任何变化 Config/System 信息我仍然有:
DreamFactory Instance
Admin Application Version: 2.1.5
DreamFactory Version: 2.1.1
System Database: mysql
Install Path: /opt/df2/apps/dreamfactory/htdocs/
Log Path: /opt/df2/apps/dreamfactory/htdocs/storage/logs/
Log Mode: single
Log Level: WARNING
我注意到其他参数也有同样的问题,比如 DF_ALLOW_FOREVER_SESSIONS=true
那也没有效果了!
有什么帮助或建议吗?
在 DreamFactory 中对 .env 文件进行更改后,建议发出以下命令以从 .env 文件(从 htdocs 文件夹或 DF2 安装目录)中读取更改:
php artisan config:clear
php artisan cache:clear
自从我将 Dreamfactory 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'),
当我将 .env 文件中的 DF_LOG_LEVEL 更改为其他值时,即使在重新启动服务器后,我的日志文件和管理部分中也没有任何变化 Config/System 信息我仍然有:
DreamFactory Instance
Admin Application Version: 2.1.5
DreamFactory Version: 2.1.1
System Database: mysql
Install Path: /opt/df2/apps/dreamfactory/htdocs/
Log Path: /opt/df2/apps/dreamfactory/htdocs/storage/logs/
Log Mode: single
Log Level: WARNING
我注意到其他参数也有同样的问题,比如 DF_ALLOW_FOREVER_SESSIONS=true 那也没有效果了!
有什么帮助或建议吗?
在 DreamFactory 中对 .env 文件进行更改后,建议发出以下命令以从 .env 文件(从 htdocs 文件夹或 DF2 安装目录)中读取更改:
php artisan config:clear
php artisan cache:clear