dji-sdk / Mobile-SDK-iOS

DJI Mobile SDK for iOS: http://developer.dji.com/mobile-sdk/
Other
577 stars 256 forks source link

Location error messages being printed over and over in the console in Xcode #427

Closed machive closed 3 years ago

machive commented 3 years ago

I get the following error message displayed in the Xcode debug area, over and over again. I think it has something to do with the fact that we fly indoors and do not care about location services but DJI thinks we should care. Can anybody tell me how to get the DJI SDK to stop printing out these error messages? It is annoying and it interferes with my debugging of our app. I have never gotten these error messages in the past.

Thanks!

[Client] {"msg":"#NullIsland Either the latitude or longitude was exactly 0! That's highly unlikely", "latIsZero":0, "lonIsZero":0} 2021-01-03 16:16:10.980340-0500 Gather[7766:6409957] [Client] {"msg":"#NullIsland Received a latitude or longitude from getLocationForBundleID that was exactly zero", "latIsZero":0, "lonIsZero":0, "location":{"floor":2147483647,"lifespan":-1,"rawLat":0,"integrity":0,"referenceFrame":"Unknown","lon":0,"speed":-1,"type":"Unknown","altitude":0,"rawCourse":-1,"confidence":0,"suitability":{"type":"decode failure","raw value":376497608,"expected type":"CLClientLocationSuitability"},"timestamp":-1,"rawReferenceFrame":"Unknown","lat":4.9406564584124654e-324,"verticalAccuracy":-1,"rawLon":0,"horizontalAccuracy":-1,"speedAccuracy":-1,"courseAccuracy":-1,"course":-1}}

EverlastEngineering commented 3 years ago

Comes from an Apple API when Core Location is being used. Super annoying. I put a special string at the beginning of all my logs so i can filter out the garbage.

machive commented 3 years ago

The funny thing is that I am not using CoreLocation. Great idea about tagging every message with a prefix.