Added additional logging to legendemissions endpoint to try to identify where bottleneck is occurring