in2code-de / ipandlanguageredirect

TYPO3 redirect - browserlanguage and ip-address based
GNU General Public License v3.0
14 stars 14 forks source link

Remove "Country could not be determined" warning if countryBasedOnIp not used #28

Open Patta opened 3 years ago

Patta commented 3 years ago

If the countryBasedOnIp configuration is set to *, e.g. to use only the browserLanguage detection, the exception like Tue, 06 Apr 2021 13:07:48 +0200 [WARNING] request="cae49e28ec7c0" component="In2code.Ipandlanguageredirect.Domain.Service.IpToCountry.LocalDatabase": Executing of class failed - ["Country could not be determined"] should be disabled, otherwise the warning is written on every page load to the log file.

Additional it would be cool to disable the ipToCountryService by e.g. choose "none" for ipToCountryService in the extension settings.

einpraegsam commented 3 years ago

ok, understand your problem. I like the none option that you mention. PR are always welcome :)