Add more logging info in API exporting logic to debug a problem in production