Add logging for module registration