-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Closed
Labels
Fixed in 2.2.xThe issue has been fixed in 2.2 release lineThe issue has been fixed in 2.2 release lineFixed in 2.3.xThe issue has been fixed in 2.3 release lineThe issue has been fixed in 2.3 release lineIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedGate 1 Passed. Automatic verification of issue format passed
Description
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.
mmenozzi, LucaGallinari, fabianaromagnoli, azambon, cdlate and 3 more
Metadata
Metadata
Assignees
Labels
Fixed in 2.2.xThe issue has been fixed in 2.2 release lineThe issue has been fixed in 2.2 release lineFixed in 2.3.xThe issue has been fixed in 2.3 release lineThe issue has been fixed in 2.3 release lineIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedGate 1 Passed. Automatic verification of issue format passed