I was under the impression that modules were only supposed to be enabled/uninstalled in Drupal 8, yet I have a custom module which is disabling itself randomly. Of course, it's a problem we cannot consistently reproduce, and it is frustratingly difficult to debug, because it doesn't happen on dev servers.
Is there somewhere which documents what can cause a module to become disabled? I thought this was supposed to be impossible, so I would think it would be only a few things.
The module reports
Disabled when running
drush pm-list. It is definitely reporting itself as disabled.
Is there a better way to debug, research why this is happening?