chg: add logging to FOX module

pull/406/head
Raphaël Vinot 2022-05-02 13:11:03 +02:00
parent 463d1d2d1a
commit eaff6c81ee
1 changed files with 1 additions and 0 deletions

View File

@ -67,5 +67,6 @@ class FOX():
self.__submit_url(url)
except requests.exceptions.HTTPError as e:
return {'error': e}
self.logger.info('URL submitted to FOX ({url})')
return {'success': 'URL submitted successfully'}
return {'error': 'Submitting is not allowed by the configuration'}