exlibris-fed / exlibris

MIT License
4 stars 0 forks source link

Possible error when viewing book details on a book that isn't in the database #104

Open Sigafoos opened 3 years ago

Sigafoos commented 3 years ago
Jul 10 13:17:28 localhost docker-compose[20190]: app_1  | 2020/07/10 13:17:28 could not find work record not found
Jul 10 13:17:28 localhost docker-compose[20190]: app_1  |
Jul 10 13:17:28 localhost docker-compose[20190]: app_1  | (/build/service/book.go:87)
Jul 10 13:17:28 localhost docker-compose[20190]: app_1  | [2020-07-10 13:17:28]  [2.44ms]  SELECT * FROM "authors"  WHERE "authors"."deleted_at" IS NULL AND ((open_library_id = '/authors/OL7071070A')) ORDER BY "authors"."open_library_id"
ASC LIMIT 1
Jul 10 13:17:28 localhost docker-compose[20190]: app_1  | [0 rows affected or returned ]

It does display the authors, though (not the description: they may not have one?), so this might just be log spam. In which case I'd like to remove that.

Sigafoos commented 3 years ago

Confirmed that a book not in the db will show the description if it exists. Just log spam then.