base_adresse: log get_by_id failure as warnings (#76654)
gitea/passerelle/pipeline/head There was a failure building this commit Details

This commit is contained in:
Benjamin Dauvergne 2023-04-14 15:22:55 +02:00
parent e852d7e2f3
commit 81697bed97
1 changed files with 1 additions and 1 deletions

View File

@ -216,7 +216,7 @@ class BaseAdresse(AddressResource):
result = result.copy()
result['id'] = id
return {'data': [result]}
self.logger.error('get_by_id: id %s was not found', id)
self.logger.warning('get_by_id: id %s was not found', id)
return {'err': _('Address ID not found')}
@endpoint(