It's not possible to change the "dev/debug/debug_logging" sys config field while in production mode. It should definitely be set to "No" as default (like when switching from developer/default to production) but you should be allowed to change this value even while in production mode.
Preconditions
- Magento version 2.2 (dunno with other versions)
Steps to reproduce
- Switch to production mode
Expected result
- From the admin, go into "Stores/Configuration/Advanced/Developer/Debug/Log to file"
- Try to change the dropdown value, but you can't because the input is disabled
Actual result
- From the admin, go into "Stores/Configuration/Advanced/Developer/Debug/Log to file"
- You can change the dropdown value
Insights
In Magento\Deploy\etc\di.xml there is this entry:
...
<type name="Magento\Deploy\App\Mode\ConfigProvider">
<arguments>
<argument name="config" xsi:type="array">
<item name="developer" xsi:type="array">
<item name="production" xsi:type="array">
<item name="dev/debug/debug_logging" xsi:type="string">0</item>
</item>
</item>
</argument>
</arguments>
</type>
...
that writes this
...
'system' => array (
'default' => array (
'dev' => array (
'debug' => array (
'debug_logging' => '0',
),
),
),
),
...
in the env.php. The presence of this entry on the env.php disables the related input in the admin panel.
MOREOVER, if you switch from production to developer mode the entry will not be removed and so you can't change the value of the input, even if you are now in developer mode.
It's not possible to change the "dev/debug/debug_logging" sys config field while in production mode. It should definitely be set to "No" as default (like when switching from developer/default to production) but you should be allowed to change this value even while in production mode.
Preconditions
Steps to reproduce
Expected result
Actual result
Insights
In Magento\Deploy\etc\di.xml there is this entry:
that writes this
in the env.php. The presence of this entry on the env.php disables the related input in the admin panel.
MOREOVER, if you switch from production to developer mode the entry will not be removed and so you can't change the value of the input, even if you are now in developer mode.