Add debug logging to configuration loading