mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
log error
This commit is contained in:
parent
5141c2a042
commit
1e05f7dade
1 changed files with 2 additions and 2 deletions
|
|
@ -140,13 +140,13 @@ export function followingServiceRouter() {
|
|||
|
||||
logger.info('RSS label added to the item')
|
||||
} catch (error) {
|
||||
logger.error('error saving feed item', error)
|
||||
|
||||
if (isUniqueViolation(error)) {
|
||||
logger.info('feed item already saved')
|
||||
return res.sendStatus(200)
|
||||
}
|
||||
|
||||
logger.error('error saving feed item', error)
|
||||
|
||||
return res.sendStatus(500)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue