Maptio / maptio

http://www.maptio.com
Other
24 stars 5 forks source link

Improve reliability of locale detection #783

Closed rgoj closed 2 years ago

rgoj commented 2 years ago

This is an attempt to address some issues with reliability of locale detection. See thread here: https://maptio.slack.com/archives/C01QCQJMS23/p1664869299019229

I'm not quite sure what is happening yet, I couldn't quite work out what the problems were as they seemed quite unreliable. I did have several hunches and this code addresses those issues - and simplifies the way locale is detected. If the problems are still there / repeat than at least we'll have a saner, simpler base to investigate them from with the code in this PR.

I left some debugging in (commented out on the server), in case I do end up getting back to this.