hello Dennis,
Thanks for your prompt response.
After enabling/disabling the checkbox 'Debug Logging', it starts working again.
--------------------------------------------------------------------------------------------------------------------------------------------
Another question we have is how we can reduce the entries in the log file.
Currently we receive a lot of logs about the IP/GEO service like the below:
2022-08-02 16:00:28 - DEBUG: Check if the GEO service is available at
http://www.geoplugin.net/php.gp?ip={IP}&base_currency={CURRENCY}
2022-08-02 16:00:28 - DEBUG: GEO Service is available
2022-08-02 16:00:28 - DEBUG: Check country for ip 66.249.64.245
2022-08-02 16:00:28 - DEBUG: Host url
http://www.geoplugin.net/php.gp?ip=66.249.64.245&base_currency={CURRENCY}
2022-08-02 16:00:28 - DEBUG: Response: a:24:{s:17:"geoplugin_request";s:13:"66.249.64.245";s:16:"geoplugin_status";i:206;s:15:"geoplugin_delay";s:3:"1ms";s:16:"geoplugin_credit";s:145:"Some of the returned data includes GeoLite data created by MaxMind, available from <a href=\'
http://www.maxmind.com\'>
http://www.maxmind.com</a>.";s:14:"geoplugin_city";s:0:"";s:16:"geoplugin_region";s:0:"";s:20:"geoplugin_regionCode";s:0:"";s:20:"geoplugin_regionName";s:0:"";s:18:"geoplugin_areaCode";s:0:"";s:17:"geoplugin_dmaCode";s:0:"";s:21:"geoplugin_countryCode";s:2:"US";s:21:"geoplugin_countryName";s:13:"United States";s:14:"geoplugin_inEU";i:0;s:19:"geoplugin_euVATrate";b:0;s:23:"geoplugin_continentCode";s:2:"NA";s:23:"geoplugin_continentName";s:13:"North America";s:18:"geoplugin_latitude";s:6:"37.751";s:19:"geoplugin_longitude";s:7:"-97.822";s:32:"geoplugin_locationAccuracyRadius";s:4:"1000";s:18:"geoplugin_timezone";s:15:"America/Chicago";s:22:"geoplugin_currencyCode";s:3:"USD";s:24:"geoplugin_currencySymbol";s:5:"$";s:29:"geoplugin_currencySymbol_UTF8";s:1:"$";s:27:"geoplugin_currencyConverter";s:6:"1.0003";}
2022-08-02 16:00:28 - DEBUG: Response: Array
(
[geoplugin_request] => 66.249.64.245
[geoplugin_status] => 206
[geoplugin_delay] => 1ms
[geoplugin_credit] => Some of the returned data includes GeoLite data created by MaxMind, available from <a href=\'
http://www.maxmind.com\'>
http://www.maxmind.com</a>.
[geoplugin_city] =>
[geoplugin_region] =>
[geoplugin_regionCode] =>
[geoplugin_regionName] =>
[geoplugin_areaCode] =>
[geoplugin_dmaCode] =>
[geoplugin_countryCode] => US
[geoplugin_countryName] => United States
[geoplugin_inEU] => 0
[geoplugin_euVATrate] =>
[geoplugin_continentCode] => NA
[geoplugin_continentName] => North America
[geoplugin_latitude] => 37.751
[geoplugin_longitude] => -97.822
[geoplugin_locationAccuracyRadius] => 1000
[geoplugin_timezone] => America/Chicago
[geoplugin_currencyCode] => USD
[geoplugin_currencySymbol] => $
[geoplugin_currencySymbol_UTF8] => $
[geoplugin_currencyConverter] => 1.0003
)
2022-08-02 16:00:28 - DEBUG: Country code is US
2022-08-02 16:00:28 - DEBUG: Region code is
2022-08-02 16:00:28 - DEBUG: Country id is 223
--------------------------------------------------------------------------------------------------------------------------------------------
Although, we have disabled it in the module settings (check the attached screenshot),
such infos are still writing in the log file.
Is there any way the logs write only the entries related to VAT validation?
i.e. like the below one:
2022-08-02 15:17:34 - DEBUG: Check formated VAT number ATU56568388
2022-08-02 15:17:34 - DEBUG: Country AT is a valid EU country!
2022-08-02 15:17:34 - DEBUG: Check formated VAT number ATU56568388
2022-08-02 15:17:34 - DEBUG: Country AT is a valid EU country!
2022-08-02 15:17:34 - DEBUG: Vatnumber country is AT / 14
2022-08-02 15:17:34 - DEBUG: Offline validate VAT number ATU56568388
2022-08-02 15:17:34 - DEBUG: Check formated VAT number ATU56568388
2022-08-02 15:17:34 - DEBUG: VAT number format is valid!
2022-08-02 15:17:34 - DEBUG: Country AT is a valid VIES country!
2022-08-02 15:17:34 - DEBUG: Check if the VIES VAT number service is available at
https://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl
2022-08-02 15:17:34 - DEBUG: SOAP Service is available
2022-08-02 15:17:34 - DEBUG: Online validate country AT with VAT number ATU56568388
2022-08-02 15:17:34 - DEBUG: VAT number without country U56568388
2022-08-02 15:17:34 - DEBUG: Web Service result
2022-08-02 15:17:34 - DEBUG: Response is valid
2022-08-02 15:17:34 - DEBUG: Array
(
[denomination] => MeisterLabs
[name] => Meisterlabs Software Gmbh
[address] => Mariahilfer Straße 97
At-1060 Wien
[countryCode] => AT
)
2022-08-02 15:17:34 - DEBUG: decodeAddress: Mariahilfer Straße 97
At-1060 Wien country=AT, country_id=14
2022-08-02 15:17:34 - DEBUG: SOAP Address: Array
(
[country] => 14
[zone] =>
[company] => Meisterlabs Software Gmbh
[address-1] => Mariahilfer Straße
[address-2] => 97
[address_1] => Mariahilfer Straße
[address_2] => 97
[postcode] => AT-1060
[city] => Wien
[valid] => 1
)
2022-08-02 15:17:34 - DEBUG: Reverse VAT set for outside country!
2022-08-02 15:17:34 - DEBUG: Check formated VAT number ATU56568388
2022-08-02 15:17:34 - DEBUG: VAT formatted ATU56568388
--------------------------------------------------------------------------------------------------------------------------------------------
Thanks in advance,
Thrasyvoulos Frantzis
eSIM.me Team