Write logs configuration only when the module is enabled
Merge pull request #1163 from Zentyal/ejhernandez/fix-red-button-logs-disabled

Write logs configuration only when the module is enabled