Clean up format of API call debug line