Added back debug logging for empty resource_format